Button opens document but it closes immediately????

M

malycom

Hi

I have a button that opens a pdf file. THe following code opens it.

Private Sub Command76_Click()
Application.FollowHyperlink "C:\setup.pdf"
End Sub

However, the pdf opens for a mili second and then closes.

I tried this also as a hyperlink but again the same problem.

If I use the button wizard to actually open an application (not document)
everything works fine but the specific pdf I need to open is throwing up
problems.

By the way, the pdf opens perfectly by doub le clicking it or by opening via
Acrobat Reader exe.

Any ideas?

Regards

Malcolm
 
M

malycom

Hi all

Thanks if you have taken a look but I have found a satisfactory way of
resoving the issue for now.

I am opening the link as a URL opeing the pdf in a web browser which suits
our needs.

Thanks anyway.
 

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