Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have a userform which at the moment i open up with a command button. i want
it to open as soon as i open the workbook. ih ave tried the following: Private Sub Workbook_Open() Sheet1.Unprotect Password:="troytempest1" UserForm1.Open Sheet1.Protect Password:="troytempest1" End Sub i have tried it with and without the protect and unprotect. i have also tried several other ways. i am missing something really simple,can anyone see what i am doing wrong thankyou John |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It needs to be actually on the OPEN event of the workbook, and I think
that it should be userform1.show |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
IT is Userform1.Show not open, and that code should be in the ThisWorkbook
code module. -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "john tempest" wrote in message ... i have a userform which at the moment i open up with a command button. i want it to open as soon as i open the workbook. ih ave tried the following: Private Sub Workbook_Open() Sheet1.Unprotect Password:="troytempest1" UserForm1.Open Sheet1.Protect Password:="troytempest1" End Sub i have tried it with and without the protect and unprotect. i have also tried several other ways. i am missing something really simple,can anyone see what i am doing wrong thankyou John |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() " wrote: It needs to be actually on the OPEN event of the workbook, and I think that it should be userform1.show tried userform1.show that does not work either. i am missing something but i dont know wht it is |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thankyou bob i'd put it in the wrong place
regards john "john tempest" wrote: " wrote: It needs to be actually on the OPEN event of the workbook, and I think that it should be userform1.show tried userform1.show that does not work either. i am missing something but i dont know wht it is |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My pleasure.
-- HTH Bob Phillips (remove nothere from the email address if mailing direct) "john tempest" wrote in message ... thankyou bob i'd put it in the wrong place regards john "john tempest" wrote: " wrote: It needs to be actually on the OPEN event of the workbook, and I think that it should be userform1.show tried userform1.show that does not work either. i am missing something but i dont know wht it is |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Userform.Show after sendkeys | Excel Programming | |||
Create and show UserForm from Add-In | Excel Programming | |||
How to Show a userform from XLA sub | Excel Programming | |||
show a userform | Excel Programming |