How do I retrieve the cell next to the one that has been defined? Cell "A2" stores AT and I want to display Austria which i have displayed in cell "B2" instead of AT. I need this functionality in a For loop.
AT Austria
IT Italy
FR France
I need to do the For loop using AT (for other purposes) but i want to write away the country name (Austria or Italy etc)
The macro below gives run-time error 424 Object required.
Sub test()
Dim country
Dim country_list
Dim counter
country_list = Worksheets("Sheet1").Range("A2:A4")
counter = 1
For Each country In country_list
Worksheets("Sheet2").Cells(counter, 1).Value = country.Offset(0, 1).Value
counter = counter + 1
Next country
End Sub