![]() ![]() ![]() I attached an example, sort of a rough draft, to As noted by previous commenters, Excel security is NOT secure! But I have done something similar to what you want for an internal document for training reports so employees can easily see their own reports but if they see others it isn't a big deal either. If the data is sensitive and you cannot risk users intentionally getting to other worksheets, then you'll have to find another way as Excel's internal "security" is not secure if people make any effort to break it. And, you would have to protect the VBA project so they can't easily get your passwords (but, this is also easy to break if one googles it). You would also need to run the protectsheet routine before saving and the unprotect routine after saving.Īlso, you would need to be sure to use the worksheet code names, which are viewable in the VBA project viewer or it is in the (Name) field when you click on the properties button in the developer tab, so that users can't circumvent your macro by changing the worksheet tab name. ![]() ![]() You should be able to get the user id using the environ function.Īnd, you would need to set up an event handler in the ThisWorkbook VBA module of your workbook to protect all sheets when opened, then get the user id and unprotect their sheet(s). But, if you still wanted to do it, then you would need to use VBA. Even someone with little skill can google the instructions to break it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |