Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a generic code that will take a list of Excel files (workbooks) in column A, open each one, and run a macro that is in that file then close it.
I have code that opens a workbook and does some stuff then saves it but the name is hard coded in the open file code statement and it is a single workbook. In my search I find little help and what I did find this is about all I understood of the code, which runs the sub named MyMacro for that workbook. Run("MyMacro") I assume the code would assign each file name to a variable and then that variable would be properly placed in the open file code and I would have to change MyMacro to the actual name of the sub I wanted to run. Thanks. Howard |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Opening / Closing files using Excel Macro? | Excel Programming | |||
Excel files with list function not opening in Excel 2000 | Excel Discussion (Misc queries) | |||
macro for opening all excel files and copying contents | Excel Programming | |||
Error opening files from a list in a spreadsheet | Excel Programming | |||
Opening Files based on list | Excel Programming |