Copy file with VBA

Copy file with VBA

Anonymous
Not applicable
1,435 Views
6 Replies
Message 1 of 7

Copy file with VBA

Anonymous
Not applicable
hi,
How can i copy File from one directory to another with VBA.
If someone knows to let me write the code.

Thanks.
0 Likes
1,436 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
Hi Milko,

FileCopy SourceFileSpec TargetFileSpec


Regards

Laurie

MilkoNunev wrote:
> hi,
> How can i copy File from one directory to another with VBA.
> If someone knows to let me write the code.
>
> Thanks.
0 Likes
Message 3 of 7

Anonymous
Not applicable
have in mind something

Dim fSys As New FileSystemObject
Private Sub Form_Load()
With fSys
.CopyFile "E:\picture.jpg", "D:\", True
End With
End Sub

but i have a problem with this code
0 Likes
Message 4 of 7

Anonymous
Not applicable
Hi Laurie,
Can you write me some sample code. I write my programms to Visual Basic for AutoCad.

Thanks.
0 Likes
Message 5 of 7

Anonymous
Not applicable
FileCopy SourceFileSpec TargetFileSpecMilkoNunev

e.g.

FileCopy "C:\Temp\I could have read the help file.txt" _

"C:\Temp\But I couldn't be bothered.txt"


Regards

Laurie

wrote:
> Hi Laurie,
> Can you write me some sample code. I write my programms to Visual Basic for AutoCad.
>
> Thanks.
0 Likes
Message 6 of 7

Anonymous
Not applicable
I guess you don't set reference to
Microsoft Scripting Runtime, do you?

~'J'~
0 Likes
Message 7 of 7

Anonymous
Not applicable
that's ignorant
0 Likes