Solved

MultiSelect Property for CommonDialog

Posted on 2001-09-10
2
324 Views
Last Modified: 2010-05-18
I use CommonDialog control to Open Files and trying to let users use the MultiSelect option but the control does not include the MultiSelect property.
0
Comment
Question by:Viki
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 170 total points
ID: 6470960
Set CommonDialog1.Flags = cdlOFNAllowMultiselect

Before the .ShowOpen, this displays a different open dialog which allows multiple file selection. You
should specify the .FileName property as a wildcard e.g., "*.*" as well before the .ShowOpen. The .FileName
property will return the list of files selected seperated by spaces. Use Split(String," ") to get an
array of the filenames.  
0
 
LVL 8

Expert Comment

by:DennisBorg
ID: 6471054
>Use Split(String," ") to get an array of the filenames.  

Unless you've set the flag to instruct it to use long file names.

-Dennis Borg
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now