Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking to a .pdf file? 1

Status
Not open for further replies.

mrdod

Technical User
Jun 12, 2006
103
US
When I click the button to activate my code I get a flash then it goes away. Why can't I get the file to stay open? Are there settings that need to be modified? Anyway here is my code. Any help would be great.

Application.FollowHyperlink "C:\Documents and Settings\myname\My Documents\Bonerite 1070.pdf", , True, True


Thanks
 
Which PDF reading software are you using?

Does the file open normally (ie if you open it from File -> Open or double click it in Windows explorer)?

Have you tried the FAQ here on using ShellExecute to run it instead, which runs the equivalent of double clicking it in Windows Explorer?

John
 
Thanks for the reply.

I'm using Adobe Acrobat 7.0 and yes it opens fine when I dbl click it in Windows. I can't seem to find the FAQ you are referring to. I will keep searching.

Thanks you
 
I've been trying this from home and after looking on the internet a while I found some code (below). The problem is after clicking the button nothing happens...Nothing. What am I missing besides a brain???

Private Sub Command0_Click()
Dim stappname As String
stappname = "C:\Documents and Settings\Person\Linksys_BEFW11S4_Wireless_4_Port_CableDSL_Router_Manual.pdf"
ShellExecute 0, "Open", stappname, "", "", conShow
End Sub

Again any help would be great!!

Thanks
 
Thanks John I finally got a chance to look into this using the links provided and got it to work. I appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top