Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Run a macro when I open a workbook

How can I run a macro automatically when I open a workbook? Also, how can
linked data automatically be refreshed wihtout clicking any buttons? I
basically want to use the windows task scheduler to open a workbook with
linked information at a specific time each day and then run a macro. I don't
know much about VBA, so please keep the response simple.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Run a macro when I open a workbook


Private Sub Workbook_Open()
Call myMacro
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"CraigJ" wrote in message
...
How can I run a macro automatically when I open a workbook? Also, how can
linked data automatically be refreshed wihtout clicking any buttons? I
basically want to use the windows task scheduler to open a workbook with
linked information at a specific time each day and then run a macro. I
don't
know much about VBA, so please keep the response simple.



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
Run a macro automatically on workbook open tweacle Excel Worksheet Functions 2 February 25th 06 07:38 PM
Open Personal Macro Workbook buumoon Excel Discussion (Misc queries) 1 January 31st 06 04:08 PM
How to Run Macro in open workbook/s hni Excel Discussion (Misc queries) 1 October 31st 05 11:14 AM
run macro on workbook open kevin Excel Discussion (Misc queries) 3 March 4th 05 11:12 AM
how can I run a macro when I open a workbook? filo666 Excel Discussion (Misc queries) 2 March 2nd 05 08:56 PM


All times are GMT +1. The time now is 07:39 AM.

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"