#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default User forms

When you open an Excel worksheet, how do you make
instantly go to a user form?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default User forms

You could have the worksheet activate event open the form.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Scott" wrote in message
...
When you open an Excel worksheet, how do you make
instantly go to a user form?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default User forms

Thanks for the help
-----Original Message-----
You could have the worksheet activate event open the

form.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Scott" wrote in message
...
When you open an Excel worksheet, how do you make
instantly go to a user form?



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default User forms

If by sheet you mean workbook, then go into the VBE and in the project
explorer, under the project select ThisWorkbook. double click on it to
display the thisworkbook module. In the left dropdown select Workbook and
in the right dropdown select open (at the top of the module)

This will put in the declaration for the workbook_Open event. Put your code
to display the userform there

Private Sub Workbook_Open()
Userform1.Show
End Sub

Chip Pearson's page on Events:

http://www.cpearson.com/excel/events.htm


--
Regards,
Tom Ogilvy

"Scott" wrote in message
...
When you open an Excel worksheet, how do you make
instantly go to a user form?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default User forms

Thanks for the help!!
-----Original Message-----
If by sheet you mean workbook, then go into the VBE and

in the project
explorer, under the project select ThisWorkbook. double

click on it to
display the thisworkbook module. In the left dropdown

select Workbook and
in the right dropdown select open (at the top of the

module)

This will put in the declaration for the workbook_Open

event. Put your code
to display the userform there

Private Sub Workbook_Open()
Userform1.Show
End Sub

Chip Pearson's page on Events:

http://www.cpearson.com/excel/events.htm


--
Regards,
Tom Ogilvy

"Scott" wrote in message
...
When you open an Excel worksheet, how do you make
instantly go to a user form?



.



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
User Forms Joanne New Users to Excel 18 July 5th 07 12:42 AM
user forms Runner77 Excel Discussion (Misc queries) 0 January 12th 06 04:31 AM
User Forms Sgwapt Excel Programming 0 January 17th 04 01:22 AM
User forms in VBA Dick Kusleika Excel Programming 0 September 29th 03 05:55 PM
User forms Candee[_2_] Excel Programming 2 September 12th 03 03:11 PM


All times are GMT +1. The time now is 04:03 PM.

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"