Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default show userform

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default show userform

It needs to be actually on the OPEN event of the workbook, and I think
that it should be userform1.show

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default show userform

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default show userform



" 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default show userform

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default show userform

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform.Show after sendkeys ryan Excel Programming 1 September 22nd 04 01:00 AM
Create and show UserForm from Add-In Rick Knight[_2_] Excel Programming 3 December 9th 03 01:04 AM
How to Show a userform from XLA sub Thibault Excel Programming 1 December 8th 03 03:36 PM
show a userform Joe[_17_] Excel Programming 0 July 18th 03 03:25 PM


All times are GMT +1. The time now is 09:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"