Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automatic Password Protect Sheet
I've coded a button to open a file, copy some info from 1 sheet to another,
but i need the button to first unprotect the sheet, then do its copying, then protect the sheet when finsihed. i've tried: Worksheets("Sheet1!").Protect (password) and hence WorkSheets("Sheet1!").UnProtect (password) but it doesnt password protect it, only protects it normally, anyone help please? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automatic Password Protect Sheet
Sheets("Sheet1").Unprotect Password:="justme"
your code to do things Sheets("Sheet1").Protect Password:="justme" Gord Dibben MS Excel MVP On Wed, 10 Dec 2008 15:22:05 -0800, Lorcan Dene wrote: I've coded a button to open a file, copy some info from 1 sheet to another, but i need the button to first unprotect the sheet, then do its copying, then protect the sheet when finsihed. i've tried: Worksheets("Sheet1!").Protect (password) and hence WorkSheets("Sheet1!").UnProtect (password) but it doesnt password protect it, only protects it normally, anyone help please? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
password protect a sheet | Excel Discussion (Misc queries) | |||
protect sheet with password | Excel Programming | |||
Protect sheet without password? | Excel Discussion (Misc queries) | |||
Password Protect a Sheet | Excel Discussion (Misc queries) | |||
Protect Sheet with password through VBA | Excel Programming |