LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default FileCopy Probelm

Perfrect. I figured that since the file didn't exist in the first place it
would not matter, but I was wrong. Thanks for the help.

"Allllen" wrote:

In the source you specified the source filename. So in the destination you
need to specify the new filename. You can't just overwrite the C:\.

try
strFileDestination = "C:\OT.xls"

--
Allllen


"jutlaux" wrote:

I am trying to copy a file from a network location to a local drive via the
below code, but ever time I go to run the macro I get a "Path not found
error" what am I doing wrong?
sub CopyOTFile
strFileSource = "N:\shared\ENGINEER\ELECTRIC\OT.xls"
strFileDestination = "C:\"

FileCopy strFileSource, strFileDestination
end sub

 
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
Probelm with macro mac Excel Worksheet Functions 5 January 14th 08 07:47 PM
Hyperlink probelm Glenn Richardson[_2_] Excel Programming 3 August 31st 05 09:24 AM
Hyperlink probelm Glenn Richardson Excel Worksheet Functions 2 August 30th 05 02:26 PM
Hyperlink probelm Glenn Richardson Excel Discussion (Misc queries) 1 August 30th 05 01:44 PM
Range probelm in VB6 K.K.[_2_] Excel Programming 4 July 1st 04 12:07 PM


All times are GMT +1. The time now is 06:58 PM.

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

About Us

"It's about Microsoft Excel"