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

in a nutshell: I have a folder named ScannedClientDocs with a series o
.jpg images...want to copy them to a more defined folder calle
ClientDocs

tried the following code:

For j = 2 To SCnum
For i = 0 To 17

SourceFile = Dir("" & drive & ":\ScannedClientDocs\" & Ws.Cells(j
5).Value _
& "" & neuArray(i) & ".jpg", vbDirectory)

DestinationFile = Dir("" & drive & ":\ClientDocs\" & Ws.Cells(j
5).Value & "\" _
& Ws.Cells(j, 5).Value & "" & snArray(i) & "", vbDirectory)
If SourceFile < "" Then 'Dir("" & drive & ":\ScannedClientDocs\"
Ws.Cells(j, 5).Value & "" & neuArray(i) & ".jpg", vbDirectory)

FileCopy SourceFile, DestinationFile

End If
Next i
Next j

recieve the message: File not found

When I go to debug, Source file is there (e.g., SmithJohnDD.jpg) an
the more defined Destination folder is there (e.g.
SmithJohnDDForm...so I want to put the SmithJohnDD.jpg file into th
sub-folder SmithJohnDDForm...where did I goof?

Thanks, Ro

--
Message posted from http://www.ExcelForum.com

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
Filecopy and UNC-pathname Jos Vens Excel Programming 7 February 12th 04 11:10 AM
Filecopy in vba macro Jodie[_2_] Excel Programming 0 September 5th 03 03:17 PM
FileCopy Dana DeLouis[_5_] Excel Programming 0 August 11th 03 12:57 PM
FileCopy John Green[_2_] Excel Programming 1 August 5th 03 08:55 AM
FileCopy error Chip Pearson Excel Programming 0 August 1st 03 02:43 PM


All times are GMT +1. The time now is 10:54 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"