compile error on filedialog..using object 11 lib..

N

nycdon

I'm still getting compiler error on defining variable as 'filedialog'..even
after referencing MS Office 11 library..

any ideas? it flags the Dim statement..

---------------------------------------------
Dim dlgOpen As FileDialog

Set dlgOpen = Application.FileDialog( _
FileDialogType:=msoFileDialogOpen)

With dlgOpen
.AllowMultiSelect = True
.Show
End With
------------------------------------------------
 

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