Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following userform code asking for a password to open another w/book..
at which line I should insert code,(what code) to open another w/book called "sales" Private Sub cmdLogin_Click() With Me.TextBox1 If .Text < ThisWorkbook.Worksheets("Sheet1") _ Range("R1").Value Then 'sheet1cell"R1" contains password MsgBox "Invalid Password !", vbCritical SelStart = 0 SelLength = Len(.Text) SetFocus Else: Unload Me End If End With End Sub -- Message posted via http://www.officekb.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
linking to a password protected book | Excel Discussion (Misc queries) | |||
'BeforeClose' code problems:book won't close if more than one book is open | Excel Programming | |||
PASSWORD REMOVAL I have the password to open the file and the password to modify the file now how to remove them | Excel Programming | |||
Open book, check for macros, close book | Excel Programming |