I'm having a strange problem when I attempt to refresh some query tables on a protected sheet.
Prior to the refresh, I have included a line to unprotect the sheet (see below) and after the refresh, I protect it again.
When I step through this code, one line at a time using F8, it works perfectly. But when I run the code in the normal way, I get a pop-up telling me "The cell I'm trying to change is on a protected sheet."
Anyone encountered something like this before? Again, it works when I step through the code - but only then.
Please Login or Register to view this content.
Bookmarks