Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filename in Macro
Message
From
22/02/1998 08:56:08
 
 
To
All
General information
Forum:
Microsoft Office
Category:
Excel
Title:
Filename in Macro
Miscellaneous
Thread ID:
00080322
Message ID:
00080322
Views:
71
My case is:
In an Excel file "ABC.xls", I have a macro handling with 2 files, 1 is "ABC.xls" and the other is "cde.dbf". The following command will appear in my macro
Windows("ABC.xls").Activate
But sometimes I need to change the filename "ABC.xls" to "DDD.xls" for example, then this macro will be an error. I need to change it manaully to Windows("DDD.xls").Activate to run it smoothly. Anyone know is there a variable that store the current filename? So that I don't need to change the macro every time I change its filename?
Thanks

Power
Power Wong
Every problem will have a solution, the only problem is that can you find it out.
Reply
Map
View

Click here to load this message in the networking platform