So I'm working on a Macro to login to a website then auto fill in info I need to register 100s of contracts. I got the macro to pull up the website and login, but once in the website I'm having trouble getting it to click on a link in the site. I'm guessing I can't get the element by ID or tagname, what's the best way to get the element for the link? My code so far and a screen shot of the Inspect element are below. I'm trying to click on a link that says "Vehicle Protection Center; TIA
Sub AUTOFILL()
Dim IE As Object
Dim doc As HTMLDocument
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "Ally Auto Dealer Services | Financing, Training, Rewards & More | Ally Auto"
Do While IE.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
Set doc = IE.document
IE.document.getElementById("user").Value = "USERNAME"
IE.document.getElementById("password").Value = "PASSWORD"
IE.document.getElementById("processLogin").Click
IE.document.getElementbyTagName("Vehicle Protection Center").Click
End Sub
Sub AUTOFILL()
Dim IE As Object
Dim doc As HTMLDocument
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "Ally Auto Dealer Services | Financing, Training, Rewards & More | Ally Auto"
Do While IE.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
Set doc = IE.document
IE.document.getElementById("user").Value = "USERNAME"
IE.document.getElementById("password").Value = "PASSWORD"
IE.document.getElementById("processLogin").Click
IE.document.getElementbyTagName("Vehicle Protection Center").Click
End Sub