Opening the Folder dialog box?

J

Jun

I would like to select a folder instead of files from VBA Word. I know that
the wdDialogFileOpen will only open files, but I would like a way of just
returning a directory path. Is there any such dialog that could just
retrieve the directory like those found in installation kits?

Thanks,
 
S

Steve Yandl

I don't think it was available before Office 2000 but in Excel I've used
Application.FileDialog(msoFileDialogFolderPicker)

Steve
 

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