excel - Opening .pdf with VBA -


I have code, it seems that PDF should not be open Please help me I am very fluent with VBA, but Adobe Not with VBA Object Oriented Code.

  Clear all options text option from PDFFile () Dim selectpdf String Dim Dimension as String Dim Filter as String Dim as Dim Acrobat.AcroApp dim gPDDoc Acrobat.AcroPDDoc Set gApp = CreateObject ("AcroExch.App") Set gPDDoc = CreateObject ("AcroExch.PDDoc") Caption = "Please select an input file should be extension.pdf" selectpdf = Application.GetOpenFilename (Filter , Caption) gPDDoc.Open (selectpdf) End Sub  

If you The only requirement is to open PDF, is there any reason to automate the eclobate, but thanks for using ShellXsecret (which is registered in windows, too much of a file opening)?

  Option Clear Private Announcement Function Shell Execute Lib "Shell 32.dll" The nickname "Shellxicuatea" (Volt HVANDED long, as well as LPO operation string, as biline lpfile string, by ALLP In the form of parameter string, string as the BY-LLPDI rector, by long valve CMD long) () Launchfile ("C: \ temp \ somefile.pdf") & gt; as a long sub-test 32 Then 'This is done, file open ales' for some reason' Launchfile = ShellExecute (0 & amp ;, vbNullString, sFileName) for a long time as failed End End End Function LaunchFile (string as sFileName) , VbNullString, vbNullString, vbNormalFocus) End Function  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -