If you want to prevent the user from modifying the workbook, you can hide all but one of the sheets on closing the workbook. Then, they will have to enable macros to see the sheets. You will have to leave at least one sheet visible (maybe a blank sheet?). If you set the sheets' visibility to xlVeryHidden, they will not show up in the list for unhiding sheets. The only way they could access them would be to enable the macros.
Code:
Sub Auto_Close
'set the sheet to xlVeryHidden
End Sub
Sub Auto_Open
'set the sheet to xlVisible
End Sub
[code]
Hope this helps!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.