Kavish Sekhri
New Member
Hi, Can anyone please help me with setting the range for this?
Currently I am using the following VBA
Here the range is for Column A i.e. Range("A1:A" & N), however I want to change it to Row 2 from cell B2 to Z2.
Please check the image attached to get an idea of the range.
I want to execute all the web-links from B2 to Z2.
Thanks
__________________________________________________________________
Currently I am using the following VBA
Code:
Sub CreateSheetsFromAList()
Dim Country As String
Dim N As Long
Country = Sheets("Launch").Range("D3")
MsgBox "Opening Links for Country - " & Country
N = Sheets(Summary).Cells(1, 1).End(xlDown).Row
If N = 1048576 Then
MsgBox "No Data Present for the Country - " & Country
Else
For Each link In Sheets(Country).Range("A1:A" & N)
ActiveWorkbook.FollowHyperlink Address:=link
Next link
End If
End Sub
Here the range is for Column A i.e. Range("A1:A" & N), however I want to change it to Row 2 from cell B2 to Z2.
Please check the image attached to get an idea of the range.
I want to execute all the web-links from B2 to Z2.
Thanks
__________________________________________________________________
Mod edit : thread moved to appropriate forum !
Attachments
Last edited by a moderator: