getting multiple filenames

R

Ryan H.

Hello,

Is there a way to get the filenames for multiple files in an open dialog
box?

I know this works for only choosing one file and then it returns the path to
that filename.. but I want to be able to choose multiple files:

FileToOpen = Application.GetOpenFilename(Title:="Open file to process",
FileFilter:="Excel Files *.xls (*.xls),")

I want something like:

FilesToOpen = Application.GetOpenFilenames(Title:="Open files to process",
FileFilter:="Excel Files *.xls (*.xls),")


Thank you
 
F

Frank Kabel

Hi
have a look at the GetOpenFilename-Method in the VBA help and use the
MultiSelect option for this method
 

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