I have a routine that loads email attachments. Using a shell command I can have Word and Excel run their attachments, however if an attachment is a PDF, how does the Shell statement need to be coded to load the PDF file.
Not 100% sure with VBA but I have called it in javascript like this before:
Code:
function OpenPDF(str) {
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = str;
oShell.ShellExecute(commandtoRun, "", "", "open", 1);
}
Where str / commandtoRun are the full path of the PDF
This would indicate that you can use ShellExecute to simply open a PDF natively with
We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.