Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Renaming a file

I need to use VBA to automaticaly rename an excell file, the file that needs to be renamed is not open at the time.
  #2   Report Post  
Posted to microsoft.public.excel.programming
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming an excel file that is Linked. dls25 Excel Worksheet Functions 6 April 28th 23 03:42 AM
VB file renaming. El Bee Excel Worksheet Functions 2 January 23rd 08 01:49 AM
Renaming A File Rose Excel Discussion (Misc queries) 2 December 14th 06 05:33 PM
Renaming File Removes Worksheets Dustin D. Cook Excel Discussion (Misc queries) 2 April 7th 05 10:21 PM
Copying and renaming a file Craig Excel Discussion (Misc queries) 1 February 24th 05 10:47 PM


All times are GMT +1. The time now is 03:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"