You can use VBA's Filecopy method e.g.
Sub CopyAnyFile()
Dim sSourcePath As String, sDestPath As String
sSourcePath = "c:\temp\test.txt"
sDestPath = "C:\text.txt"
FileCopy sSourcePath, sDestPath
End Sub
Regards,
Daniel.
TY Daniel. I'll give that one a go.
Prompt for destination name
Daniel,
Not being a VBer, what do I put in if I want the user to name the destination file. I extract data from a Unix box with monthly data which eventually feeds into a report. Before bring the next one across, I archive the old one. The path stays the same, but the name depends on the name of the month being archived.
TIA. This sort of thing is going to make me redundant!!
Richard