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
------------------------------------------------
 
Top