I have an excel spreadsheet - First column contain ID numbers, 2nd column contains the name that the specific ID number should be assigned to.
The intention of my macro is to copy the ID number from A2, enter it into a web application, scrape the name associated with the ID number off of the web application and enter that name into the 3rd column.
I have successfully accomplished this with the very first value in A2.
My problem is that I can not for the life of me figure out how to use a loop so that the macro cycles through each cell in column A until it reaches a blank cell. I'm very new to VBA so forgive my ignorance. The code below is the piece of my macro that must loop.
IE.document.getElementById("caseId").Value = ThisWorkbook.Sheets("StarsID").Range("A2").Value
'Tells macro to click on 'Search Cases' Button
IE.document.getElementById("_eventId_search").Click
'Tells macro to wait for browser to load completely
Do While IE.Busy = True Or IE.readyState <> 4: DoEvents: Loop
'Tells macro that first search result will be entered into row 2
y = 2
currentQueue = IE.document.getElementById("results").Children(1).Children(0).Children(3).Children(0).innerText
Sheets("StarsID").Cells(y, 3).Value = currentQueue
ActiveCell.Offset(1, 0).Select