gpnhmiller
Registered User.
- Local time
- Today, 08:51
- Joined
- Aug 24, 2012
- Messages
- 17
I have a file called CAPTURE.BUF. I am trying to convert it to text. Here is what I ahve done, but I get the message box ever time. Can someone tell me what I am doing wrong?
Public Function copyFile()
Dim SourceFile As String
Dim DestinationFile As String
SourceFile = "C:\PCPICSW\CAPTURE.BUF"
DestinationFile = "C:\INVESTMENT_REPORTS\CAPTURE.TXT"
On Error Resume Next
FileCopy SourceFile, DestinationFile
If Error > 0 Then
MsgBox "Could not copy mls file."
End If
On Error GoTo 0
End Function
Thanks, Greg
Public Function copyFile()
Dim SourceFile As String
Dim DestinationFile As String
SourceFile = "C:\PCPICSW\CAPTURE.BUF"
DestinationFile = "C:\INVESTMENT_REPORTS\CAPTURE.TXT"
On Error Resume Next
FileCopy SourceFile, DestinationFile
If Error > 0 Then
MsgBox "Could not copy mls file."
End If
On Error GoTo 0
End Function
Thanks, Greg