Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I cannot seem to use a variable in a save as path name
unless it is the last entry (file name). What is the syntax for giving a subdirectory in the path a variable linked to a range? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
PartPath = "C:\Money Files\Computer Helpers\Modules\"
NextPartPath = Left(ActiveWorkbook.Name, Len(ActiveWorkbook.Name) - 4) Suffix = Range("A1").Value FileName = Range("B1").Value TotalPath = PartPath & NextPartPath & "\" & Suffix & "\" & FileName _ & ".xls" HTH Paul -------------------------------------------------------------------------------------------------------------- Be advised to back up your WorkBook before attempting to make changes. -------------------------------------------------------------------------------------------------------------- I cannot seem to use a variable in a save as path name unless it is the last entry (file name). What is the syntax for giving a subdirectory in the path a variable linked to a range? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Concatenate path and file string for external reference | Excel Worksheet Functions | |||
How to extract only file name from folder path string in Excel? | Excel Worksheet Functions | |||
Setting a string variable as the file name | Excel Discussion (Misc queries) | |||
Path\File name length problem Excel Crash on save as | Excel Discussion (Misc queries) | |||
Save file path in cell | Excel Programming |