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 SubPlease Login or Register to view this content.
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
Which macro?
this macro. hope you can help
Please Login or Register to view this content.
Last edited by VBA Noob; 06-15-2008 at 03:20 PM.
managed a workaround by creating a new workbook and copying all the sheets from the old one with protection turned off, then re-applying the macro with a new password on the new sheet, needed quite a bit of work but problem solved. thanks. would still love to know why i couldnt just change the password on the original workbook though, it's a puzzle
This is a great bit of code. Is it possible to hide the password in the code or prevent them going into it, as want to prevent users from unprotecting the work sheet?
Thanks
Harry
havent found a way to hide the password but if you go to the vba editor, click on tools, VBAprojectproperties and select the protection tab. tick the "lock for viewing" box and enter the same password, no one without the password can see or change the macros, including the protection. works perfectly
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks