Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks so much Dominic!!! That is perfect.
"dominicb" wrote: Good morning Robert You need this macro to be put into the ThisWorkbook section of your file: Private Sub Workbook_BeforeClose(Cancel As Boolean) ActiveSheet.Protect password:="devide", DrawingObjects:=True, _ Contents:=True, Scenarios:=True End Sub If the thought of that gives you a cold sweat, here's what you do. From XL press alt + F11, this will open the Visual Basic Editor and find your file in the project window - top left. Look for the ThisWorkbook section and double click on it, and copy the macro above into the blank pane. Close the VBE and save your file. Job done. HTH DominicB -- dominicb ------------------------------------------------------------------------ dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932 View this thread: http://www.excelforum.com/showthread...hreadid=375555 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Robert You're welcome, and I appreciate the feedback. Dominic -- dominic ----------------------------------------------------------------------- dominicb's Profile: http://www.excelforum.com/member.php...fo&userid=1893 View this thread: http://www.excelforum.com/showthread.php?threadid=37555 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to setup a excel sheet to be protect after save and close file | Excel Discussion (Misc queries) | |||
mail merge-word file automatically closing | Excel Discussion (Misc queries) | |||
Need a psswd verification form to open when the file is opened | Excel Programming | |||
how to let excel ask to save the sheet when closing the excel file | Setting up and Configuration of Excel | |||
password protect one sheet in within file | Excel Programming |