Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My workbook includes several worksheets. I'm using the following code
to unprotect and then protect the contents of these worksheets as I write to them. DatabaseWorksheet.Unprotect Password:=DwgNumLogPwd InputFormWorksheet.Select DatabaseWorksheet.Cells(DestinationRow, 1).Value = AssignDate DatabaseWorksheet.Protect Password:=DwgNumLogPwd This code is executed when InputFormWorksheet is the active worksheet. Thus there is a toggling back and forth between worksheets. Does anyone know of a cleaner way to protect worksheets? Bear in mind the worksheets being protected need to remain visible. Thanks. Kevin ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protect and Unprotect all worksheets with macro | Excel Discussion (Misc queries) | |||
ToggleButton to Unprotect/Protect all worksheets | Excel Discussion (Misc queries) | |||
Protect/Unprotect Multiple Worksheets | Excel Discussion (Misc queries) | |||
Protect/unprotect all worksheets | Excel Worksheet Functions | |||
Macro to protect/unprotect worksheets | Excel Programming |