I have a macro that runs when I click a button on a worksheet to clear the contents. It works without fault.
I want it to also run when the worksheet is opened so that other users don't see the data when they open it up and it's empty, ready for them to use.![]()
Please Login or Register to view this content.
So I tried to introduce code into the worksheet.
or![]()
Please Login or Register to view this content.
It does remove most of the data, but there are still SOME cells in column i and I don't understand why this is?![]()
Please Login or Register to view this content.
If I click on the button and run the same code after the worksheet is opened, it clears the remaining cells (as it should). If I test the code in Microsoft Visual Basic for Applications, it runs without fault?
Bookmarks