Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
i am trying to run a workbookopen macro but i keep getting an error staing
that i am trying to edit a protected worksheet or cell. I do have all of the worksheets in this workbook protected but i am trying to run a macro to clear certain cells at open . Can someone tell me how to write it so that it unprotects all of the worksheets before it tries to clear the cells? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi kcdonaldson,
Record a macro that unprotects the worksheet, select a cell so that you will have a distinct separation between the two parts, then protect the worksheet. During the recording if a password was used it will be recorded. You will then have the code that you can incorporate before and after coding that you are doing to each sheet.-- --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "kcdonaldson" wrote in message ... i am trying to run a workbookopen macro but i keep getting an error staing that i am trying to edit a protected worksheet or cell. I do have all of the worksheets in this workbook protected but i am trying to run a macro to clear certain cells at open . Can someone tell me how to write it so that it unprotects all of the worksheets before it tries to clear the cells? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can T Get Macro To Run! | New Users to Excel | |||
Macro to link Sheets to main workbook | Excel Discussion (Misc queries) | |||
macro to hide sheets | Excel Discussion (Misc queries) | |||
Macro for moving sheets | Excel Discussion (Misc queries) | |||
Macro for multiple charts | Excel Worksheet Functions |