Thread: Renaming a file
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ron de Bruin Ron de Bruin is offline
external usenet poster
 
Posts: 11,123
Default Renaming a file

You can use this

OldName = "C:\Data\OLDFILE.xls"
NewName = "C:\Data\NEWFILE.xls"
Name OldName As NewName


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Paul C" wrote in message ...
I need to use VBA to automaticaly rename an excell file, the file that needs to be renamed is not open at the time.