我正在尝试执行以下操作:
我在1&2上挣扎。我有步骤3的代码。任何帮助表示赞赏
请参阅下面我尝试过的代码。
Sub Copy_PasteRows()
'Count number of rows in Simplified pipeline and set as q
q = Sheets("Pipeline simplified").Range("H:H").SpecialCells(xlCellTypeVisible).Count
' Insert the required number of Rows into Combined sheet
Rows("7:7+q").Insert Shift:=xlDown, _
CopyOrigin:=xlFormatFromLeftOrAbove
'Copy and paste Values from simplified into combined
Sheets("Pipeline simplified").Select
Range("A7:AF" & Range("H" & Rows.Count).End(xlUp).Row).Select
Selection.Copy
Sheets("2013-2018 Combined").Select
Rows("7:7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub