Forum home » Delegate support and help forum » Microsoft Excel Training and help » Linking Excel and pdf
Linking Excel and pdf
Resolved · Medium Priority · Version 2003
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
For upcoming training course dates see: Pricing & availability
RE: Linking Excel and pdf
Hi ChrisThanks 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
|
|
» Forum post: Disappearance of the worksheet listings at the bottom of the wor |



Course updates

