Hello,
I have a list with 3 columns:
Package Name:
Latest Date:
Link:
The VBA should click on the link, go to the linked sheet, capture a value and return to the main page.
I have a problem with writing a loop to go through the link in each row.
Can you please help:
<colgroup><col><col><col></colgroup><tbody>
</tbody>
Code:
Sub Lop
Sheet1.Activate
count1 = Range("c2", Range("c1").End(xlDown)).Cells.count
y = 2
Do Until y = count1
Sheet1.Activate
Range("C" & y).Hyperlinks(Range("C" & y).Value).Follow NewWindow:=False, addhistory:=True
y = y + 1
Loop
end sub
I have a list with 3 columns:
Package Name:
Latest Date:
Link:
The VBA should click on the link, go to the linked sheet, capture a value and return to the main page.
I have a problem with writing a loop to go through the link in each row.
Can you please help:
Package | Date | Link |
kolabi Pack | 1-Jan-19 | VIC |
Anjan Pack | 12-Aug-18 | TAS |
Coala Pack | 4-Dec-18 | WA |
<colgroup><col><col><col></colgroup><tbody>
</tbody>
Code:
Sub Lop
Sheet1.Activate
count1 = Range("c2", Range("c1").End(xlDown)).Cells.count
y = 2
Do Until y = count1
Sheet1.Activate
Range("C" & y).Hyperlinks(Range("C" & y).Value).Follow NewWindow:=False, addhistory:=True
y = y + 1
Loop
end sub