Hi!
Running out of answers on this one. I need to run VBA to select and copy some data from the Excel worksheet to be available on the clipboard. The sheet is also protected and I need to Unprotect & Protect sheet in the start and finish. Although it works fine when done manually, when finalizing with Protect sheet over VBA, all the copied data is lost from the clipboard.
The only reason I'm forced to run Unprotect & Protect sheet via VBA is that there are some Hidden columns that need to be shown before copy process and then hidden again. Again, it doesn't make a lot of sense as when allowing for "Format columns" in the Protect sheet dialog box, I can manually freely Hide and Unhide columns as I wish, even though the sheet Protection is kept on.
No dice with VBA though as even after manually updating the Allow list on the protection, the macro will not run for Unhiding and Hiding of columns and demands Protect sheet to be removed.
Any ideas on how to handle this?
Running out of answers on this one. I need to run VBA to select and copy some data from the Excel worksheet to be available on the clipboard. The sheet is also protected and I need to Unprotect & Protect sheet in the start and finish. Although it works fine when done manually, when finalizing with Protect sheet over VBA, all the copied data is lost from the clipboard.
The only reason I'm forced to run Unprotect & Protect sheet via VBA is that there are some Hidden columns that need to be shown before copy process and then hidden again. Again, it doesn't make a lot of sense as when allowing for "Format columns" in the Protect sheet dialog box, I can manually freely Hide and Unhide columns as I wish, even though the sheet Protection is kept on.
No dice with VBA though as even after manually updating the Allow list on the protection, the macro will not run for Unhiding and Hiding of columns and demands Protect sheet to be removed.
Any ideas on how to handle this?