I am working on a VBA project to get Page title and created date from an URL. I found this code online but it's not working since IE is not available. Is there any way I can get the title without IE?
Function GetPageTitle(a As String)
Set ie = CreateObject("InternetExplorer.Application")
With ie
.Visible = False
.Navigate a
Do Until .ReadyState = 4
DoEvents
Loop
GetPageTitle = .document.Title
.Quit
End With
End Function
I have tried to use Edge as Internet Explorer but it's not working. I have tried this code also HTML Page Title in Excel VBA