Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
The following code saves the active workbook in c:/files ActiveWorkbook.SaveAs "C:\files\" & ActiveWorkbook.Name However, I have two sub folders in c:\files, c:\files\new\ and c:\files\old\ Is it possible to add a cell reference to the end of ActiveWorkbook.SaveAs "C:\files\" so I can type, for example, "old" or "new" in cell A1, and when I save using the above code, excel will save in the appropriate sub folder? I have tried along the lines of: ActiveWorkbook.SaveAs "C:\files\Range("A1")" & ActiveWorkbook.Name but I cannot get it to work. Thanks in advance. Pinda. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell value becomes filepath to insert picture,jpg or object | Excel Worksheet Functions | |||
Filepath | Excel Discussion (Misc queries) | |||
Filepath | Excel Discussion (Misc queries) | |||
Selecting a filepath based on cell contents | Excel Discussion (Misc queries) | |||
Insert Filepath into Cell | Excel Programming |