Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Autoexecute Macros

Morris,

In the ThisWorkbook code module, put in

Private Sub ThisWorkbook_Open()
' your code here
End Sub

Alternately, you can name the macro, in a standard code module, Auto_Open.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Morris Benjamin" wrote in message
...
How do you setup a macro to start running when the
workbook is opened? Thank you in advance for the
assistance.

Morris



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
Autoexecute macro Joanne M. Excel Discussion (Misc queries) 3 June 15th 07 03:09 PM
HELP !! Macros to autoexecute on open Wins07 Excel Discussion (Misc queries) 2 April 4th 07 10:16 PM
how do i run an autoexecute macro in excel robin morris Excel Worksheet Functions 2 July 6th 06 04:36 PM
Opening an AutoExecute Macro Workbook from an AutoExecute Macro Workbook Tom Ogilvy Excel Programming 0 July 8th 03 03:21 PM


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