ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Naming a variable in a file path (https://www.excelbanter.com/excel-programming/279973-naming-variable-file-path.html)

Ron[_13_]

Naming a variable in a file path
 
I am trying to name a directory in a Save As path by using
a reference to a range for a directory name. This works
fine for creating a file name but not the directory part
of the path. Any suggestions?

Tom Ogilvy

Naming a variable in a file path
 
mkdir "C:\My documents\ & Range("A1").Value

If you create a valid argument that would work with mkdir, you shouldn't
have a problem.

--
regards,
Tom Ogilvy

Ron wrote in message
...
I am trying to name a directory in a Save As path by using
a reference to a range for a directory name. This works
fine for creating a file name but not the directory part
of the path. Any suggestions?





All times are GMT +1. The time now is 01:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com