Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Is the a way to rename the directory the open excel file is in, using a macro? ex: C:\test\test.xls to C:\new\test.xls using a macro in test.xls Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Harvey,
You can use the builtin Name function name "C:\MyTest\Volker.xls" aS "c:\MYtEST\Volker1.xls" -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Harvey" wrote in message ... Hi, Is the a way to rename the directory the open excel file is in, using a macro? ex: C:\test\test.xls to C:\new\test.xls using a macro in test.xls Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Harvey,
Assuming that the destination folder exists, use Name "C:\Test\Test.xls" As "C:\New\Test.xls" If the folder does not exist, use MkDir to create the folder first: MkDir "C:\New" -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Harvey" wrote in message ... Hi, Is the a way to rename the directory the open excel file is in, using a macro? ex: C:\test\test.xls to C:\new\test.xls using a macro in test.xls Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Rename of sheets by macro | Excel Discussion (Misc queries) | |||
Can you copy a Excel file to a new directory and rename it? | Excel Discussion (Misc queries) | |||
Rename Macro | Excel Discussion (Misc queries) | |||
rename file macro | Excel Programming | |||
MACRO TO RENAME SHEET ! | Excel Programming |