Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I can open an Excel workbook from the Run box with
C:\Users\terry\Walks\WalkIndex.xlsm But how do I add parameters so that it will then run a specific macro please? Terry, East Grinstead, UK |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I can open an Excel workbook from the Run box with
C:\Users\terry\Walks\WalkIndex.xlsm But how do I add parameters so that it will then run a specific macro please? Terry, East Grinstead, UK Use that workbook's Workbook_Open event to Call the macro, OR use an Auto_Open Sub (better) in a standard module to setup what should happen when the file opens. Note that Auto_Open() is the *replacement* for the Workbook_Open event, and should be companioned with an Auto_Close() Sub which is the *replacement* for the Workbook_BeforeClose event. -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If you have several macros and wish to specify which to run, you could have a
popup list to choose from. OR If you want individual executables from say a desktop folder, instead of using Excel macros just run a vbScript file (e.g.: Macro1.vbs) to do same as your macro would do. -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
Need syntax for RUNning a Word macro with an argument, called from an Excel macro | Excel Programming | |||
translate lotus 1-2-3 macro into excel macro using excel 2000 | Excel Programming |