TheWennerWoman
Active Member
- Joined
- Aug 1, 2019
- Messages
- 270
- Office Version
- 365
- Platform
- Windows
Hello,
I have the following code
lrow2 = 571
I am getting Run Time Error 1004: method 'range' of object '_Worksheet' failed?
I'm sure this macro gets run every month without errors. Any thoughts?
Thank you in advance.
I have the following code
VBA Code:
Dim lrow, low1, lrow2 As Long
lrow = Sheet6.Cells(Sheet6.Rows.Count, "B").End(xlUp).Row
lrow1 = Sheet8.Cells(Sheet8.Rows.Count, "B").End(xlUp).Row
lrow2 = Sheet13.Cells(Sheet13.Rows.Count, "A").End(xlUp).Row
If lrow2 > 1 Then
Sheet13.Range("A2:A" & lrow2).EntireRow.ClearContents ' this line is erroring
End If
lrow2 = 571
I am getting Run Time Error 1004: method 'range' of object '_Worksheet' failed?
I'm sure this macro gets run every month without errors. Any thoughts?
Thank you in advance.
Last edited: