linking excel and pdf

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Linking Excel and pdf

Linking Excel and pdf

resolvedResolved · Medium Priority · Version 2003

Christoper has attended:
Excel VBA Intro Intermediate course
Access VBA course
Excel VBA Advanced course

Linking Excel and pdf

Hi,

I have writen some code that generates a pdf from an Excel file and the pdf is saved in a folder. I was wondering if there is some code that would then open the pdf. I was thinking it may be in the "shell" function?

Many thanks

Chris

RE: Linking Excel and pdf

Hi Chris

Thanks for your question

You can use the shell command to open an application programmatically

For example the following line of code opens Word

Shell ("D:\Program Files\Microsoft Office\Office12\winword.exe")


The trick would be to get it to then open a specific file. I can see no arguments in the switch function to specify a particular file. It might be possible using some more general VB6 code. This will require further research on my part.

If I can find a simple solution to the problem, I will follow up this post within the next day or so

Regards

Stephen


 

Excel tip:

Moving between split pane sections in a spreadsheet

If you have used the split panes feature in your worksheet, use the following keyboard shortcut keys to move quickly and effortlessly between paned sections:

F6 - Move to the next pane
Shift + F6 - Move to the previous pane

View all Excel hints and tips


Server loaded in 0.08 secs.