Browse for data source

R

Robo

In Word 2000 I have a simple macro to do a mailmerge, however the header and
data source will be in differenct locations for different users. Is there a
way to include the browse function in a macro?
 
P

Peter Jamieson

I think you would have to use the approach described at

http://word.mvps.org/FAQs/MacrosVBA/WordDlgHelp.htm

with the dialog boxes named

wdDialogMailMergeOpenHeaderSource

and

wdDialogMailMergeOpenDataSource

However, if you want to extract the name that the user selected in the
dialog, rather than simply executing the dialog, be careful because the name
returned my just contain the file name and not the full pathname of the
file.

Peter Jamieson
 

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