Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Store input from userform in a password protected sheet
Hi All, I have designed a userform which accepts inputs and the inputs are
stored on Sheet2 of the same work book. Is there any way I can password protect Sheet2 and still receive userinputs from userform in Sheet2? Thanks in Advance |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Store input from userform in a password protected sheet
With Worksheets("Sheet2")
.Unprotect Password:=MyPassword ' do your stuff .Protect Password:=MyPassword End With -- jb "sam" wrote: Hi All, I have designed a userform which accepts inputs and the inputs are stored on Sheet2 of the same work book. Is there any way I can password protect Sheet2 and still receive userinputs from userform in Sheet2? Thanks in Advance |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Store input from userform in a password protected sheet
Thanks for the help, It does work now. But, I didnt kow we can still delete a
sheet even if it is protected. Is there a way where users cannot delete a sheet? Thanks in Advance "john" wrote: With Worksheets("Sheet2") .Unprotect Password:=MyPassword ' do your stuff .Protect Password:=MyPassword End With -- jb "sam" wrote: Hi All, I have designed a userform which accepts inputs and the inputs are stored on Sheet2 of the same work book. Is there any way I can password protect Sheet2 and still receive userinputs from userform in Sheet2? Thanks in Advance |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Store input from userform in a password protected sheet
Sam,
try this Dim Mypassword As String Mypassword = "ABCD1234" With ThisWorkbook .Unprotect Password:=Mypassword With Worksheets("Sheet2") .Unprotect Password:=Mypassword ' do your stuff .Protect Password:=Mypassword End With .Protect Password:=Mypassword End With -- jb "sam" wrote: Thanks for the help, It does work now. But, I didnt kow we can still delete a sheet even if it is protected. Is there a way where users cannot delete a sheet? Thanks in Advance "john" wrote: With Worksheets("Sheet2") .Unprotect Password:=MyPassword ' do your stuff .Protect Password:=MyPassword End With -- jb "sam" wrote: Hi All, I have designed a userform which accepts inputs and the inputs are stored on Sheet2 of the same work book. Is there any way I can password protect Sheet2 and still receive userinputs from userform in Sheet2? Thanks in Advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Password protected userform | Excel Discussion (Misc queries) | |||
no password for protected sheet | Excel Worksheet Functions | |||
Remove password protected sheet | Excel Discussion (Misc queries) | |||
password protected Sheet | Excel Discussion (Misc queries) | |||
VBa, Password protected sheet fails to get unprotected with the same password | Excel Programming |