Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Auto run a macro

Hi,

Can anyone please tell me how to run a macro automatically from the
VB-editor when opening the spreadsheet ?

Br,
Jakob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 373
Default Auto run a macro

You can put this in the workbook module:

Private Sub Workbook_Open()
'your code here
End Sub

or you can put this in a standard module:

Sub Auto_open()
'your code here
End Sub

"Jayjay" wrote in message
...
Hi,

Can anyone please tell me how to run a macro automatically from the
VB-editor when opening the spreadsheet ?

Br,
Jakob



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
Sub Macro vrs Function Macro Auto Start Pat Excel Discussion (Misc queries) 7 June 6th 07 09:53 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Auto-run macro after auto-query refresh (Excel2000,sr1) Bill Cufflin Excel Programming 3 June 29th 06 03:30 AM
Auto macro BDavis Excel Programming 1 November 5th 04 05:56 PM
Auto macro Alvin Hansen[_2_] Excel Programming 6 August 8th 04 11:01 AM


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