Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Can I call a macro from ouside excel?
For example, I want to open the spreadsheet W.xls, and run the macro x()
I really want a string that looks something like C:\Spreadsheets\W.xls #x# That will open W.xls then run x() Is this possible? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Can I call a macro from ouside excel?
You could add the code to Workbook_Open, it will then automatically run when
you open the workbook Private Sub Workbook_Open() 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 (change the xxxx to gmail if mailing direct) "DannyS" wrote in message ... For example, I want to open the spreadsheet W.xls, and run the macro x() I really want a string that looks something like C:\Spreadsheets\W.xls #x# That will open W.xls then run x() Is this possible? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Can I call a macro from ouside excel?
Maybe put a InputBox in the WorkbookOpen macro and it will pop-up and ask for
user to input a MacroName as the file is opened............ Vaya con Dios, Chuck, CABGx3 "DannyS" wrote: For example, I want to open the spreadsheet W.xls, and run the macro x() I really want a string that looks something like C:\Spreadsheets\W.xls #x# That will open W.xls then run x() Is this possible? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Importing EXCEL Spreadsheets into ACCESS -- Macro or VBA? | Excel Discussion (Misc queries) | |||
Excel vba to call Access Macro | Excel Worksheet Functions | |||
Excel vba to call Access Macro | Excel Discussion (Misc queries) | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Button fails to call macro when open an Excel via Intranet | Excel Discussion (Misc queries) |