How to select a file via VBA?

  • Thread starter Thread starter hanski
  • Start date Start date
H

hanski

hi.

I have a command in VBA:

"DoCmd.TransferText acImportDelim, "ImportRules", "Sheet1", "c:
\SavedFiles\importfile.csv", True

Problem is:

I do not always want import file c:\SavedFiles\importfile.csv.
Sometimes it is a different name of file in the same directory for
instance c:\SavedFiles\importfile_2.csv

Can I somehow browse, or something like that, the new file?

hanski
 
Back
Top