run code to open a doc. from a switchboard

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
Normally this will do it:

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