Home » excel » excel vba – How can we use MSHTML with VBA?

excel vba – How can we use MSHTML with VBA?

Posted by: admin March 9, 2020 Leave a comment

Questions:

I saw a lot of examples in MSDN on how to use MSHTML in VS. Have anyone known if and how we can use MSHTML and VBA to open web pages?

Thanks.

How to&Answers:

In the VBA editor, you go under Tools -> References and add a reference to the Microsoft HTML Object Library [MSHTML.TLB]. Here is a link with an example in VBA.