Sep 17, 2003 #1 Enkay62 Programmer Sep 5, 2003 78 IT Hi. How can I rename a file (in a different directory) via vba? Thank you. Nick
Sep 17, 2003 #2 S SkipVought Programmer Dec 4, 2001 47,492 US Hi, Use the SaveAs Method. There are several arguments, so I can't tell you what you'll need, but the simplest is... Code: ActiveWorkbook.SaveAs FName where FName is the path and filename. Hope this helps Skip, Skip@TheOfficeExperts.com http://www.TheOfficeExperts.com Upvote 0 Downvote
Hi, Use the SaveAs Method. There are several arguments, so I can't tell you what you'll need, but the simplest is... Code: ActiveWorkbook.SaveAs FName where FName is the path and filename. Hope this helps Skip, Skip@TheOfficeExperts.com http://www.TheOfficeExperts.com
Sep 17, 2003 #3 RiazKhanmohamed Programmer Oct 30, 2002 115 use the copy command to copy to a new location, then use the kill command to remove the original. Hope this helps Upvote 0 Downvote
use the copy command to copy to a new location, then use the kill command to remove the original. Hope this helps
Sep 17, 2003 #4 TPetersonFlorida Programmer Aug 8, 2003 76 US use the filesystemobject, way easier than the copy command and kill command and its a standard VBA object. Upvote 0 Downvote
use the filesystemobject, way easier than the copy command and kill command and its a standard VBA object.