is it possible to protect a workbook but still run various macros, i have tried this and the macros wont run
is it possible to protect a workbook but still run various macros, i have tried this and the macros wont run
See link
http://www.ozgrid.com/VBA/excel-macr...cted-sheet.htm
VBA Noob
_________________________________________
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
this is the code found at that location, works brilliantly thanks but is the anything i can add in so that the user can still right click and insert comments in the cells
End SubPrivate Sub Workbook_Open() Dim wSheet As Worksheet For Each wSheet In Worksheets wSheet.Protect Password:="Secret", _ UserInterFaceOnly:=True Next wSheet
Last edited by royUK; 03-24-2008 at 03:23 AM.
Example workbook here
http://www.excel-it.com/vba_examples.htm
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
that was almost exactly what i wanted, i still needed to do a bit more research and messing around to get it working right but have now got exactly the workbook result i needed
thank you
is there a way to change the password in this macro, every time i try i get an error message saying i've entered the wrong password. i tried changing the code and putting it in a new workbook and it worked ok, but it wont let me change it in an existing workbook
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks