misternumbertwo
Registered User.
- Local time
- Tomorrow, 02:42
- Joined
- Dec 29, 2008
- Messages
- 11
Hi everyone, I am a novice VBA user and currently fixing an old database that produces instructions for freight and shipping. The database outputs an excel file that is copied from a template using the function FileCopy.
Now my question is can how can I add a function that will prompt the user where to save/export the files that will be generated?
I am currently using this format to copy the file.
Dim SourceFile, DestinationFile As String
SourceFile = "SRCFILE" ' Define source file name.
DestinationFile = "DESTFILE" ' Define target file name.
FileCopy(SourceFile, DestinationFile) ' Copy source to target.
What portions of the code I need to change? Any help would be very much appreciated.Thanks
Now my question is can how can I add a function that will prompt the user where to save/export the files that will be generated?
I am currently using this format to copy the file.
Dim SourceFile, DestinationFile As String
SourceFile = "SRCFILE" ' Define source file name.
DestinationFile = "DESTFILE" ' Define target file name.
FileCopy(SourceFile, DestinationFile) ' Copy source to target.
What portions of the code I need to change? Any help would be very much appreciated.Thanks