FileDialog Widget

E

Ed Warren

How do I open a file dialog object in VBA. I searched the MS Knowledge base
and found the following code, however, it fails:

Error: "Undefined user object" on the line that creates the variable fd. I
have referenced the Access 11.0 library.

'Declare a variable as a FileDialog object.
Dim fd As FileDialog
'Create a FileDialog object as a File Picker dialog box.
Set fd = Application.FileDialog(msoFileDialogFilePicker)


So I'm missing something very, very basic here.

Thanks,

Ed Warren.
 

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

Similar Threads

mso.dll for filedialog 2
Show file dialog box 1
FileDialog Filters.clear 1
File Dialog 6
Hyperlink not hyperlinking 7
Copy user selected files to new folder. 5
Access 2000 - FIle Open Dialogue 4
SAVE AS MACRO 8

Top