Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2002, WinXP
When I know the file name, the following code works just fine: ActiveWorkbook.SaveCopyAs ("C:\Folder1\Folder2\Folder3\MyFile.xls") I now need to do the same thing but with a variable file name, say VariableFileName (includes ".xls"). My problem is that I can't get the syntax right. How do write the above line of code if the file name is a variable? Thanks for your help. Otto |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
change default file path in Save As dialog box | Excel Programming | |||
get path - save new file - same sub-directory as existing file | Excel Programming | |||
Naming a variable in a file path | Excel Programming | |||
Using a variable string in a file save path | Excel Programming | |||
Save file path in cell | Excel Programming |