run code to open a doc. from a switchboard

G

Guest

I am having a hard time opening a pdf document located in an outside folder
using a switchboard button. I can add the swithboard command as either a
macro or command but keep getting errors on both. Can anyone give me the
code or macro to open a document (like a hyperlink to an outside document)
that I can use from a switchboard?
 
J

John Nurick

Normally this will do it:

Application.FollowHyperlink "D:\folder\subfolder\file.pdf"
 

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