At the top of the script I have this
then later I have this
and I receive a "Select Method of Range Class Failed" error on line
I am not totally sure why. If I thought it was a missing bracket or something I wouldn't be posting. Perhaps an error in the way I set the variable wb1?
Code:
Dim wb1 As WorkbookDim wb4 As Workbook
Set wb1 = Workbooks("General_Account_Ledger.xls")
Set wb4 = ActiveWorkbook
then later I have this
Code:
wb4.Sheets("Customer Funds Received").Range("B10").Copy wb1.Sheets("General Ledger").Range("A1").Select
Selection.End(xlDown).Offset(1, 0).PasteSpecial Paste:=xlPasteValues
and I receive a "Select Method of Range Class Failed" error on line
Code:
wb1.Sheets("General Ledger").Range("A1").Select
I am not totally sure why. If I thought it was a missing bracket or something I wouldn't be posting. Perhaps an error in the way I set the variable wb1?