Trying to copy data from Input sheets to a Summary sheet with this code:
Getting error code 1004, Select method of Range Class failed,
for line
"With Sh.Range("A77:A146").Select"
What am I doing wrong?
Code:
Dim Sh As Worksheet
For Each Sh In ActiveWorkbook.Worksheets
If Sh.Name Like "Inp*" Then
With Sh
.Range("A77:A146").Select
Selection.SpecialCells(xlCellTypeFormulas, 7).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("TotalHCList").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
End With
End If
Next Sh
Getting error code 1004, Select method of Range Class failed,
for line
"With Sh.Range("A77:A146").Select"
What am I doing wrong?