How to select a file via VBA?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top