rolo
Member
Hello,
I used this code to open a PDF file:
It worked fine, except that it showed an annoying warning message before opening the PDF (even I had application.displayalerts=false)
Today I have found this great code that opens a PDF file without warning message:
My question: How can I add a variable pdf name inside this code?
Thanks!
I used this code to open a PDF file:
Code:
MyPDF="C:\abc.pdf"
ActiveWorkbook.FollowHyperlink MyPDF
It worked fine, except that it showed an annoying warning message before opening the PDF (even I had application.displayalerts=false)
Today I have found this great code that opens a PDF file without warning message:
Code:
Shell "CMD /C START """" ""D:\mypdfs\myfile2.pdf""", vbHide
My question: How can I add a variable pdf name inside this code?
Thanks!