I have a worksheet called Exhibit "I" and inside that worksheet I have various ranges that I would like cleared when this workbook opens. This is just one of many ranges I would like cleared. The above code returns a syntax error. How can I fix this issue. Thank You
After turning on my Auto Syntax Check editor, it now displays "Compile error: Expected: list serparator or )" for the above code. I'm pretty sure it has something to do with the way the sheet is named but I have no idea how to fix this.
The code below has no problems with clearing the Range's content.
Code:
Range("'page 2'!$C$5:$D$5").ClearContents
Any help would be greatly appreciated on fixing this issue. Thank you.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.