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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File not found while trying to rename - Name XXX As XXX

Status
Not open for further replies.

CTOROCK

Programmer
May 14, 2002
289
US
Hello,

i am getting an error of Runtime '53' File not found while trying to relocate and rename a file. I use:

Name "C:\My Documents\Eric\Programs\Commissions\Customer Query.xls" As "C:\My Documents\Eric\Programs\Commissions\Customer Query 06/08.xls" '"C:\My Documents\Eric\Programs\Commissions\Customer Querries Old\Customer Query " & Format(Date, "mm/yy") & ".xls"

I was sure this was the method to use but I get an error when trying to rename it. Thanks in advance for any help

The greatest risk, is not taking one.
 
Try changing this: 06/08.xls

I am fairly sure that / is not allowed in a file name.
 
Thanks Remou. You were right!

The greatest risk, is not taking one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top