troubleshooting Question

File dialog Selected Items as string

Avatar of bhcastle
bhcastleFlag for United States of America asked on
.NET ProgrammingMicrosoft Applications
6 Comments1 Solution982 ViewsLast Modified:
Application.FileDialog(msoFileDialogFolderPicker) object has selected items but I guess I don't understand what is the object and what are the properties.  I'm self taught.  So what I need to do is return the selected filepath as a string so I can use it later in the code.  Is there a way to easily get a selected item as string or do I need to use some other method.

Set flDlg = Application.FileDialog(msoFileDialogFolderPicker)
strFilePath = flDlg.SelectedItems  'I get the error on this line.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros