'Replacing the "B8" Range from this code:
Set IE = CreateObject("InternetExplorer.Application")
Set MainPage = ThisWorkbook.Worksheets("Sheet1")
With IE
.Visible = True
.Navigate MainPage.Range("B8").Hyperlinks(1).Address
Do Until .ReadyState = 4: DoEvents: Loop
End With
Replacing it with this code below:
Sheets("sheet1").Select
rowNum = Range("B1").Value
Range(Cells(rowNum, 2), Cells(rowNum, 2)).Select
This code determines the cell address. I would like this code to replace the Range("B8") where I .navigate to a hyperlink.
I'm new to VBA and struggling to do this.
question from:https://stackoverflow.com/questions/66064860/how-can-i-add-these-two-vba-codes-together