Thanks raguldy. I've modified the code but still can't get it to perform what I'd like :
Dim SrcRange As Range
Dim RsRange As Range
Dim LkRange As Range
Dim x As Long
Set SrcRange = Sheets(1).Range("A1:A5")
Set RsRange = Sheets(1).Range("B1:B5")
Set LkRange = Sheets(2).Range("$A$1:$B$5")
For x = 1 To RsRange.Cells.Count
RsRange.Cells(x).Formula = "=VLOOKUP(" & SrcRange.Address & "," & LkRange.Address & ",2,0)"
Next
End Sub
If I check in Sheet1!B1 it's currently giving me this formula =VLOOKUP($A$1:$A$5,$A$1:$B$5,2,0) where I would need =VLOOKUP(Sheet1!A1,Sheet2!$A$1:$B$5,2,0).
Bookmarks