A
Alfred
Hi all,
I want to use the FileDialog property (VB6, Word 2003, Windows XP) in
the following macro (with some more code, added on later):
Sub ShowFileDialog()
Dim dlgOpen As FileDialog
Set dlgOpen = Application.FileDialog( _
FileDialogType:=msoFileDialogOpen)
With dlgOpen
.AllowMultiSelect = True
.Show
End With
End Sub
Running this macro in VB6/Word 2003, causes a compile error
on .FileDialog: 'Method or Data Member not found.'
In VB Tools/References both Microsoft Word 11.0 Object Library and
Microsoft Office 11.0 Object Library are checked.
What am I doing wrong?
I want to use the FileDialog property (VB6, Word 2003, Windows XP) in
the following macro (with some more code, added on later):
Sub ShowFileDialog()
Dim dlgOpen As FileDialog
Set dlgOpen = Application.FileDialog( _
FileDialogType:=msoFileDialogOpen)
With dlgOpen
.AllowMultiSelect = True
.Show
End With
End Sub
Running this macro in VB6/Word 2003, causes a compile error
on .FileDialog: 'Method or Data Member not found.'
In VB Tools/References both Microsoft Word 11.0 Object Library and
Microsoft Office 11.0 Object Library are checked.
What am I doing wrong?