Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 354
Default Run macro automatically

How to program VB so that when open the Excel work book it run the macro
automatically without hit tool/ macro/run
Thnks
Daniel
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Run macro automatically

you would use the workbook_open event. As long as macros are not disabled
either by the security setting or manually by the user, it would run on
opening.

http://www.cpearson.com/excel/events.htm
describes the various events available to you.

--
Regards,
Tom Ogilvy


"Daniel" wrote:

How to program VB so that when open the Excel work book it run the macro
automatically without hit tool/ macro/run
Thnks
Daniel

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Run macro automatically

'Paste this into the Thisworkbook Mod
'and Replace Run "Macro"
'To Run "MyMacroName"
Private Sub Workbook_Open()
Run "Macro"
End Sub

"Daniel" wrote:

How to program VB so that when open the Excel work book it run the macro
automatically without hit tool/ macro/run
Thnks
Daniel

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
Automatically Run macro Anift Setting up and Configuration of Excel 2 November 25th 06 02:52 PM
Automatically run a macro SheriTingle Excel Discussion (Misc queries) 2 July 12th 05 04:41 PM
Macro to automatically run Pam C Excel Discussion (Misc queries) 1 May 5th 05 02:35 PM
Run macro automatically. Excel macro New Users to Excel 7 April 19th 05 04:01 PM
run macro automatically nightshift12[_2_] Excel Programming 1 June 8th 04 04:14 AM


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