Posted on 1998-05-07
Thanks in advance for helping me out.
I am having trouble using "FileCopy." The specific file being copied is the file that listed in the textbox and it will always go to the same directory. I assigned variable Destination to "c:test" and SourceFile to "file1.filename." I am getting error number 56.
Dim SourceFile As String
Dim Destination As String
Private Sub File1_Click()
txbFileName.Text = File1.filename
SourceFile = File1.filename
Private Sub cmdSend_Click()
FName = txbFileName.Text
FileCopy SourceFile, Destination