Martunis99
New Member
- Joined
- Aug 16, 2021
- Messages
- 19
- Office Version
- 2016
- Platform
- Windows
Hi guys,
I am getting an error of "Expected =" when trying to clear a range.
My code is:
But the following section is returning this error:
I am not too sure what I am doing wrong?
Thank you for your help!
I am getting an error of "Expected =" when trying to clear a range.
My code is:
Rich (BB code):
ThisWorkbook.Worksheets("Ind Output").Range(IO.Offset(2, -1).Address(0, 0), Range(IO.Offset(2, -1).Address(0, 0)).End(xlDown).End(xlToRight)).ClearContents
But the following section is returning this error:
Rich (BB code):
ThisWorkbook.Worksheets("Ind Output").Range(IO.Offset(2, -1).Address(0, 0), Range(IO.Offset(2, -1).Address(0, 0)).End(xlDown).End(xlToRight))
I am not too sure what I am doing wrong?
Thank you for your help!