Hi,
I need to use the ActiveCell from sheet1 (highlighted in red) in a vlookup entered into a cell in sheet 2. The ActiveCell I want to use will change in every loop until the end of a list. Can you help?
Sub Test2()
Sheets("Sheet1").Select
Range("B8").Select
Do Until IsEmpty(ActiveCell)
Sheets("Sheet2").Select
Range("O4").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(ActiveCell,'Sheet1'!C[-13]:C[-12],2,FALSE)"
Sheets("Sheet1").Select
ActiveCell.Offset(1, 0).Select
Loop
End Sub
Bookmarks