Hello and thank you macropod for your reply.
Perhaps I was not able to explain clearly. I don't need the PDF to be displayed in MS Edge browser but the control of VBA Word form which is also called WebBroswer in that the PDF should be displayed when the selection is made from the ListBox.
I have seen some YT videos some time ago but for the life of me I cannot find them but predominately most YT videos are for MS Excel and not Word VBA.
Any idea how can I have the PDF displayed without opening external browser and only use the UserForm to display it?
Your help is much appreciated.
-Tee
Quote:
Originally Posted by macropod
To do that, you would first have to automate your web browser, then open the PDF from there.
To automate Edge through VBA, you need to use SeleniumBasic. SeleniumBasic is a browser automation framework for VB.Net, VBA and VBScript. See:
EDGE : Opening and filling a webpage through VBA - Microsoft Q&A. The information there is a bit dated, but it should get you started in the right direction.
|