How do I automate Microsoft Edge in VBA?
I have a question about automating Microsoft Edge in VBI am currently working on a project that needs to add text to a page from the internet using Microsoft Edge.
When I tried automating Edge by the code below: Public Declare PtrSafe Function Navigate2 Lib "HtmlAgilityPack.dll" Alias "Navigate2A" (ByVal hWnd As Long, ByVal lpUrl As String, ByVal uState As Long, ByVal nNavFlags As Long, ByVal pVisible As Long, ByVal lcid As Long) As Long Public Declare PtrSafe Function IsInternetExplorer4Lib "HtmlAgilityPack.dll" (ByVal hWnd As Long) As Boolean Function AddTextToPage(myurl As String, mytext As String). Dim x As Long. Dim h As Object. Set h = CreateObject("InternetExplorer.Application") h.Visible = True h.Navigate myurl x = Timer. Do While h.Busy Or h.ReadyState <> 4
Loop. MsgBox mytext. End Function. I get this error: Incompatible function created. What is wrong with the code?
Related Answers
Are there free Microsoft Edge VPNs?
In this article, we'll be going over our picks for the top VPNs on...
How do I automate my Edge browser?
How do I install Edge on Windows 7/8? Windows users can install t...
What language do Excel macros use?
It really depends on what you're doing. If you're writi...