Hi all, I have created a macro that I believe is written correctly, It doesn't give any VBA errors rather says I cannot refresh the table because the sheet is protected. However, I have added lines into the macro that specify to unprotect the sheet, refresh, and then re-protect (and in my case, re-add all of my edit ranges.) I run this macro and It gives this error:
Heres the code Im using for the refresh button, you can see it unprotects before refreshing, so I'm not sure why it's throwing this error.
Heres the code Im using for the refresh button, you can see it unprotects before refreshing, so I'm not sure why it's throwing this error.
VBA Code:
|