Open Data Source Dialog set default to *.txt with VBA

M

Mikel

Is there any way using VBA to set the file type to .txt
for the Open Data Source Dialog box. I have been able to
do this with the File Open and File Sava As Dialog boxes
but can't seem to get it to work with the Open Data Source
one Here is my code
Dim OpenDataSourcedlg As Object
Set OpenDataSourcedlg = Dialogs
(wdDialogMailMergeOpenDataSource)
With OpenDataSourcedlg
.Name = "*.TXT"
.Display
.Execute
End With

Thank you in advance, Mikel
 

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