Hi hce
Look up help for [Name Statement]
From help
Name Statement Example
This example uses the Name statement to rename a file. For purposes o
this example, assume that the directories or folders that are specifie
already exist. On the Macintosh, “HD:” is the default drive name an
portions of the pathname are separated by colons instead o
backslashes.
Dim OldName, NewName
OldName = "OLDFILE": NewName = "NEWFILE" ' Define file names.
Name OldName As NewName ' Rename file.
OldName = "C:\MYDIR\OLDFILE": NewName = "C:\YOURDIR\NEWFILE"
Name OldName As NewName ' Move and rename file
--
Ivan F Moal
-----------------------------------------------------------------------
Ivan F Moala's Profile:
http://www.excelforum.com/member.php...nfo&userid=195
View this thread:
http://www.excelforum.com/showthread.php?threadid=26838