Home |
Search |
Today's Posts |
#1
|
|||
|
|||
allow macros in protected worksheet
I have a worksheet with contains macros. I want to protect the worksheet,
but allow the macros to run. When I protect the worksheet, the macros are no longer enabled. How do I correct this? |
#2
|
|||
|
|||
Marge, use user inter face to protect the sheet, then your macros will be
able to run, something like this Private Sub Workbook_Open() Worksheets("sheet1").Protect password:="test", userInterfaceOnly:=True End Sub This is not retained with the workbook when saved so it must be reset when the workbook is re-opened, thats is why it is put in the workbook open event of the this workbook code -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "Marge" wrote in message ... I have a worksheet with contains macros. I want to protect the worksheet, but allow the macros to run. When I protect the worksheet, the macros are no longer enabled. How do I correct this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Expand/Collapse Grouped Data in Protected Worksheet | Excel Discussion (Misc queries) | |||
Import/Export XML in protected worksheet | Excel Discussion (Misc queries) | |||
Question about sorting in protected worksheet | Excel Worksheet Functions | |||
Is is possible to run macros on a protected worksheet | Excel Worksheet Functions | |||
How use group and ungroup functions while worksheet is protected | Excel Worksheet Functions |