Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run a macro automatically on workbook open | Excel Worksheet Functions | |||
Open Personal Macro Workbook | Excel Discussion (Misc queries) | |||
How to Run Macro in open workbook/s | Excel Discussion (Misc queries) | |||
run macro on workbook open | Excel Discussion (Misc queries) | |||
how can I run a macro when I open a workbook? | Excel Discussion (Misc queries) |