use a general macro for different files
Posted by camille on May 08, 2001 3:14 PM
Hi,
I've got a general macro in an XLStart file that I run for different files. There is also a small macro (macro 1) different in each file. I run the general macro and call the small macro as follows:
Application.Run "File.xls!macro1"
The problem is that I have to specify the name of the File whereas I would like to use something like ActiveWorkbook or ActiveFile,that could work for the file I'm working on, no matter which one it is.
How can I write that?
Thanks
Camille.