Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
lee lee is offline
external usenet poster
 
Posts: 184
Default autoexec macro to run on opening the spreadsheet

How do I make a macro that starts automaticaly upon the file opening?

On other applications you could save the macro with the file name autoexec
and this would work, but how do you do this with Excel ???




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default autoexec macro to run on opening the spreadsheet

Hi,

Press Alt + F11. Select this workbook then enter

Private Sub Workbook_Open()
'Your code here
End Sub

Link should help to

http://www.mcgimpsey.com/excel/modules.html

VBA Noob

Lee wrote:
How do I make a macro that starts automaticaly upon the file opening?

On other applications you could save the macro with the file name autoexec
and this would work, but how do you do this with Excel ???


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 152
Default autoexec macro to run on opening the spreadsheet

Private Sub Workbook_Open()
'Opening
Your code here
End Sub
HTH
Lou

"Lee" wrote:

How do I make a macro that starts automaticaly upon the file opening?

On other applications you could save the macro with the file name autoexec
and this would work, but how do you do this with Excel ???




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
Two Questions: R1C1 and stop text number converting to data The Moose Excel Discussion (Misc queries) 5 October 31st 06 05:53 PM
spreadsheet has outgrown the macro! Sean Excel Discussion (Misc queries) 1 October 18th 06 09:50 PM
how do I email amacro? leo Excel Worksheet Functions 24 August 9th 06 02:47 PM
Is there a way to insert a formula, password or macro in an excel spreadsheet that will automatically delete the spreadsheet? oil_driller Excel Discussion (Misc queries) 1 February 8th 05 09:34 AM
Run a macro when opening a spreadsheet Duncan Help Excel Discussion (Misc queries) 5 January 10th 05 05:33 PM


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