Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi everyone
was wondering if anyone out there was able to fill in the blanks for me please. Using VB Turn this: ActiveSheet.Unprotect. ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True into something like this: Sub() Application.ScreenUpdating = False ActiveSheet.Unprotect.Password: = "myPassword" ------ActiveSheet.DoMyThing ActiveSheet.Protect.Password: = "myPassword", ReConfirm_Password: = "myPassword", DrawingObjects:=True, Contents:=True, Scenarios:=True ------DoMyOtherThing Application.ScreenUpdating = True End Sub So the idea here that the user clicks Macro button, it opensTargetWB, activatesTargetWS, removes cell protections, pastes values, re-applies cell protection, then closesWB, all within the blink of an eye never knowing that the cell protection was touched. Ideas & Suggestions welcomed TIA Mick |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lock Unlock Cell Protection | Excel Worksheet Functions | |||
hoW TO LOCK AND UNLOCK A CELL USING A FUNCTION/FORMULA | Excel Worksheet Functions | |||
How to lock and unlock a cell using formulas in excel | Excel Discussion (Misc queries) | |||
Protection - Allow Group/Ungroup but lock / unlock some cells | Excel Discussion (Misc queries) | |||
Lock / Unlock Cell | Excel Programming |