Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Lock Excel doc from macro?

Hi All,

I have a macro that exports data to excel and emails it to a list of users. I need to lock the Excel doc to prevent users from editing data.

Any Ideas?

Labels (1)
3 Replies
calvindk
Creator III
Creator III

This thread should be able to help you with the final step of your macro:

http://www.mrexcel.com/forum/excel-questions/81185-protect-unprotect-worksheet-through-visual-basic-...

Not applicable
Author

Thanks for your response Anders,

The example in that thread seems pretty complex. All I need to do is lock the entire sheet.

Any Ideas?

calvindk
Creator III
Creator III

Only take the lock part. You are not getting around using VBA from what i can tell.