Open Word document from Form

R

Rick

Currently, I use the hyperlink property of a command
button to open a Word document (for mail merging).
However, I need to be able to do this via code (e.g. when
the button is clicked a series of If Then statements
execute - if this condition is true open this document, if
that condition is true open a different document etc.) I
thought I had it by using the application.followhyperlink
function, but it is not working. Is there a simple
command that performs the same function as the hyperlink
property for opening documents? Thanks,
-Rick
 

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