Jun 1, 2004 #1 tdonahue Technical User Feb 4, 2001 50 US I am trying to develop a macro to rename a unnamed file to a text file. What command would I use? Tom
I am trying to develop a macro to rename a unnamed file to a text file. What command would I use? Tom
Jun 1, 2004 #2 PHV MIS Nov 8, 2002 53,708 FR Something like this in VBA ? Name oldpathname As newpathname Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
Something like this in VBA ? Name oldpathname As newpathname Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Jun 2, 2004 #3 Gwena Programmer Mar 11, 2004 42 IL You can try using FileSystemObject Code: Dim oFso As Scripting.FileSystemObject Set oFso = New Scripting.FileSystemObject oFso.MoveFile "C:\9.txt", "C:\1.txt" Upvote 0 Downvote
You can try using FileSystemObject Code: Dim oFso As Scripting.FileSystemObject Set oFso = New Scripting.FileSystemObject oFso.MoveFile "C:\9.txt", "C:\1.txt"