Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I get User Form to run at start up?


When I start my Excel file I have to choose tools/macros/visual basic
editor and the open Userform1 and choose to run it. How can I make my
file user friendly for my co-workers by having them open my file and
instantly have the UserForm appear?


--
Bafa
------------------------------------------------------------------------
Bafa's Profile: http://www.excelforum.com/member.php...o&userid=37748
View this thread: http://www.excelforum.com/showthread...hreadid=573686

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default How do I get User Form to run at start up?

Hi
In the Editor project explorer window double click the ThisWorkbook
module. In the dropdown on the top left where it says (General), choose
the Workbook option. The shell of the Workbook_Open macro should
appear.
Now simply put Userform1.Show in this sub and the userform will show
when you open the workbook.
regards
Paul

Bafa wrote:
When I start my Excel file I have to choose tools/macros/visual basic
editor and the open Userform1 and choose to run it. How can I make my
file user friendly for my co-workers by having them open my file and
instantly have the UserForm appear?


--
Bafa
------------------------------------------------------------------------
Bafa's Profile: http://www.excelforum.com/member.php...o&userid=37748
View this thread: http://www.excelforum.com/showthread...hreadid=573686


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default How do I get User Form to run at start up?

In the code module for ThisWorkbook:

Private Sub Workbook_Open()
UserForm1.Show
End Sub

Mike F

"Bafa" wrote in message
...

When I start my Excel file I have to choose tools/macros/visual basic
editor and the open Userform1 and choose to run it. How can I make my
file user friendly for my co-workers by having them open my file and
instantly have the UserForm appear?


--
Bafa
------------------------------------------------------------------------
Bafa's Profile:
http://www.excelforum.com/member.php...o&userid=37748
View this thread: http://www.excelforum.com/showthread...hreadid=573686



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
Place a User Form on Start Up SamuelT[_24_] Excel Programming 2 June 16th 06 12:20 PM
User form with looping doesn't start at right place. Rominall Excel Programming 2 February 14th 06 07:36 PM
How to: User Form to assign a user defined range to a macro variab TrevTrav Excel Programming 1 March 22nd 05 07:57 PM
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form BruceJ[_2_] Excel Programming 2 October 15th 03 05:28 PM


All times are GMT +1. The time now is 06:38 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"