Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Move and rename a file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter - 26 Jan 2007 12:24 GMT
Calling all Excel programming brains,

I am trying to move and rename a file but don't know where to start,
can anybody help?

Thanks,
Peter
Martin Fishlock - 26 Jan 2007 12:58 GMT
There are at least two direct methods for copying a file:

FileCopy SourceFile, DestinationFile    

CopyFile Method

Have a look at both and try them out.
Signature

Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.

> Calling all Excel programming brains,
>
[quoted text clipped - 3 lines]
> Thanks,
> Peter
Tom Ogilvy - 26 Jan 2007 16:13 GMT
name "C:\Myfolder1\Myfile1.xls" as "C:\Myfolder2\Sub1\Report1.xls"

Name oldpathname As newpathname

see VBA help on the Name STATEMENT.

Signature

Regards,
Tom Ogilvy

> Calling all Excel programming brains,
>
[quoted text clipped - 3 lines]
> Thanks,
> Peter
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.