Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rename file error 1

Status
Not open for further replies.

Johnny42

Technical User
Jul 13, 2004
127
CA
sub rename()
Name "C\test.text" As "C\testbck.text"
end sub

I'm getting a file not found....what am I doing wrong ?
 
Name "C[highlight]:[/highlight]\test.text" As "C[highlight]:[/highlight]\testbck.text"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
sorry...yes I posted wrong...
Name "C:\test.text" As "C:\testbck.text"
still gives me that error .....?????
 
C:\test.text" should exists
"C:\testbck.text" should not

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Yes that is so......
do I have to ChDrive "C" because my workbook is on E drive ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top