10 replies
by dklippert
Go to Tools>Macro Record New Macro.
Run through the import. Then turn off the recorder.
You can now run the macro to reproduce your actions.
If you name the macro AutoOpen, it will run when you open Excel.
by seadogs
by seadogs
When going back to Stone Age, it is a simple task. Just add
excel.exe MYBOOK
in your batch file and that it is.
However, it is probably a nightmare to find out all the paths in shorthand with the ~ in it. You may have to give the exact path for both Excel and your Excel Workbook. The Excel file MYBOOK should contain the AutoOpen macro.
Depending on your system set-up it may or may not be required to add .xls to MYBOOK. [Obviously any name is OK] Actually I don?t remember exactly how to write it. However, I have used this possibility quite often in the past, by opening several Office programs this way. [on my current system the .xls would not be required]
You also may use a template rather than a workbook.
What I did more recently were Excel files in which I could choose which text file [in a given directory and perhaps with given characteristics, such as a few fixed characters, the remainder by wild cards] to import. This as each day a new text file was created and I till wanted to be able to run older files. The AutoOpen macro would show a form with a list box showing all the filenames satisfying m requirements.
Good luck.
by seadogs
by dklippert
Sorry, the correct name for an Automatic macro in Excel is:
Auto_Open
by seadogs
by seadogs
This discussion is closed to new replies.
Trending Software posts
Sort by Trending