Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Can you run a macro when you have the worksheet protected? If so, how do I get this to work in Excel? -- Terri |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Terri, one way is to unprotect the sheet run your code and then protect the
sheet all with your code, like this Sub My_Macro() Const PW As String = "123" 'Change Password Here ActiveSheet.Unprotect Password:=PW 'you code here ActiveSheet.Protect Password:=PW End Sub -- 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 "Terri" wrote in message ... Hi, Can you run a macro when you have the worksheet protected? If so, how do I get this to work in Excel? -- Terri |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I run excel 4.0 macros on excel 2000 | Excel Discussion (Misc queries) | |||
Using Collapse/Expand with Protected worksheets | Excel Discussion (Misc queries) | |||
How do i unlock protected worksheets? | Excel Worksheet Functions | |||
Running Macros in protected workbook | Excel Worksheet Functions | |||
Is is possible to run macros on a protected worksheet | Excel Worksheet Functions |