Hi,
I don't have a lot of experience with macros but I managed to build the start of something that works using the macro recorder (See below). The issue that I'm running into now is that I want to code a loop into the macro. I have a list of websites in column G and I want to open them in order (i.e. I'm selecting G2 in the first step here, but after it runs once I want it to loop back and do G3, and so on). Similarly I paste my values into sheet 2 cell B2, and on the next loop I'd like it to end up in B3, B4, etc.. Ideally I'd like it to loop 1000 times.
Thanks in advance for any help you can offer!
I don't have a lot of experience with macros but I managed to build the start of something that works using the macro recorder (See below). The issue that I'm running into now is that I want to code a loop into the macro. I have a list of websites in column G and I want to open them in order (i.e. I'm selecting G2 in the first step here, but after it runs once I want it to loop back and do G3, and so on). Similarly I paste my values into sheet 2 cell B2, and on the next loop I'd like it to end up in B3, B4, etc.. Ideally I'd like it to loop 1000 times.
Thanks in advance for any help you can offer!
Code:
Sub Macro10()
'
' Macro10 Macro
'
'
Range("G2").Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
Range("P3").Select
Range("A2:F2").Select
Selection.Copy
Sheets("Sheet2").Select
Range("B2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("B3").Select
Sheets("Sheet1").Select
Range("A1").Select
End Sub