Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default File systems

Hi

I have code in order to look at all the files within a
given path. I would like to know how to copy and paste
files, i.e. make a copy of a file. From excel using VBA

TIA


Nathan.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default File systems

Check out the FileCopy statement in VBA help.

--
Jim Rech
Excel MVP
"nath" wrote in message
...
| Hi
|
| I have code in order to look at all the files within a
| given path. I would like to know how to copy and paste
| files, i.e. make a copy of a file. From excel using VBA
|
| TIA
|
|
| Nathan.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default File systems

Hi Nathan,

Trythis

Dim FSO As Object
Dim oFile As Object
Set FSO = CreateObject("Scripting.FileSystemObject")
Set oFile = FSO.GetFile("c:\myTest\volker1.xls")
oFile.Copy ("c:\myTest\Copy of Volker1.xls")

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"nath" wrote in message
...
Hi

I have code in order to look at all the files within a
given path. I would like to know how to copy and paste
files, i.e. make a copy of a file. From excel using VBA

TIA


Nathan.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO GET TRACKING SYSTEMS [email protected] Excel Worksheet Functions 0 May 15th 08 12:49 PM
How can I access a SAS systems file and save it in Excel pmw101 Excel Discussion (Misc queries) 2 March 3rd 05 03:03 AM
Any Systems Analysts here? Souljah[_4_] Excel Programming 3 May 24th 04 12:32 AM
Distributing a VBA app across different systems, help please Joe 90[_2_] Excel Programming 0 November 14th 03 05:20 PM
Getting the systems username Bruce A. Perry Excel Programming 2 August 14th 03 06:15 PM


All times are GMT +1. The time now is 04:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"