Home » excel » Excel Loading PDF in Userform

Excel Loading PDF in Userform

Posted by: admin April 23, 2020 Leave a comment

Questions:

So I have been able to load a PDF into my userform (Excel 2013 on all machines) setting reference Adobe Acrobat Webrowser Control and adding control to userform. When i open the file on another computer or try to create another excel userform and pdf I get the following errors “Run-time error-459” or “Element not found” or “Compile error: Method or data member not found”

I am using Acrobat Adobe Reader DC

I also noticed when adding control to form it labels it as Control1 instead of AcroPDF1

Private Sub Workbook_Open()

    With UserForm1.Control1
        .LoadFile ThisWorkbook.Path & "\sample.pdf" 
    End With

    UserForm1.Show 

End Sub

Please any help much appreciated

How to&Answers:

Make sure that the Additional Control for Adobe has been added. Also take a quick look into this post for workaround and suggestions. http://www.ozgrid.com/forum/showthread.php?t=88177

MyImage

Answer:

After some trial and error i found a solution. I was currently using google chrome when experiencing this issue. The problem was that i had a google app conflicting with the pdf. So i disabled google apps and problem dissappeared. Sorry comunity i didnt resopnd earlier..thanks for all the input