Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How do you display a VBA user form when starting excel workbook?

How do you display a VBA user form when starting excel workbook? Code works
to populate a list box based on choice in previous list box but how do you
show the form so that it can be used when you start excel? I want to make it
an excel form to collect data that has interdependanrt fields.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default How do you display a VBA user form when starting excel workbook?

1 way is to start the userform from an autoopen macro.

--
http://www.standards.com/; See Howard Kaikow's web site.
"dant" wrote in message
...
How do you display a VBA user form when starting excel workbook? Code

works
to populate a list box based on choice in previous list box but how do you
show the form so that it can be used when you start excel? I want to make

it
an excel form to collect data that has interdependanrt fields.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default How do you display a VBA user form when starting excel workbook?

Open your VBE window (Alt+F11)
Ensure your Project Window is open (View - Project Explorer)
Click on the 'This Workbook' for your Excel file

Add code but substitute MyForm for the name of your userform.

' Opens userform at startup
'
Private Sub Workbook_Open()
frmMyForm.Show
End Sub

Regards,
Mickey


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do you display a VBA user form when starting excel workbook?

Additional information:

http://www.cpearson.com/excel/events.htm
Chip Pearson's overview page on events.
--
Regards,
Tom Ogilvy

"dant" wrote in message
...
How do you display a VBA user form when starting excel workbook? Code

works
to populate a list box based on choice in previous list box but how do you
show the form so that it can be used when you start excel? I want to make

it
an excel form to collect data that has interdependanrt fields.



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
Display contents of a cell in a user form text box -- Excel 2003 VBA hiskilini Excel Discussion (Misc queries) 7 April 4th 23 10:22 AM
Display history in user form James W.[_2_] Excel Programming 2 February 1st 05 09:55 PM
how do i display a value in a user form as a result of a selectio. ptoddx1 Excel Programming 3 January 29th 05 04:42 PM
User Form to display more than 1 reslut EstherJ Excel Programming 1 August 23rd 04 01:40 PM
Auto-starting a User Form Bob Kaku Excel Programming 0 August 13th 03 04:21 AM


All times are GMT +1. The time now is 11:29 PM.

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

About Us

"It's about Microsoft Excel"