use common dialog box

P

pleb

Hi,

I want to use common dialog to choose a file.
To day I use GetOpenFileName with an Excel Objet in VBA Project : It is
"durty"

I don't want to create an excel object, I want to use windows common dialog
off the system.

solution 1 : enable the reference of the common dialog DLL
But I don't find in "reference VBAProject" box, the reference to use

solution 2 : declare the API Public Function OpenFileDialog(lngFormHwnd As
Long, ....
I think it is not enough simple....


Is there someone has already the common dialog box in VBA in project ?
PLEB
 

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