If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > make macros execute automatically

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-04, 05:52
jaime1985 jaime1985 is offline
Registered User
 
Join Date: Mar 2004
Posts: 4
make macros execute automatically

how do i make macros execute automatically when i open my excel file?
thx
Reply With Quote
  #2 (permalink)  
Old 03-26-04, 06:45
DavidCoutts DavidCoutts is offline
Registered User
 
Join Date: Jan 2004
Location: Aberdeen, Scotland
Posts: 1,067
Re: make macros execute automatically

Quote:
Originally posted by jaime1985
how do i make macros execute automatically when i open my excel file?
thx
Put them in the Workbook Open Event Handler or refrence them there
to get to the workbook Code window right click on the image next to the File Menu item and Choose View Code. or Double Click on thisworkbook from the code editor menu and select workbook and open from the dropdown lists at the top of the screen.

Hope this helps

David
Reply With Quote
  #3 (permalink)  
Old 03-28-04, 20:17
qimel qimel is offline
Registered User
 
Join Date: Feb 2004
Location: USA - California
Posts: 21
This also works....as I asked the same question a couple of weeks ago and got this anser from a different member:

In the Project window of the VBA window, double-click This Workbook.

Add the following:

Private Sub Workbook_Open()
Call Macro1' Or whatever your macro name is
End Sub



Melinda
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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