S
shternm
I have a question about how to make relative references within VLOOKU
macro work.
For Example:
Dim sht As Worksheet
Dim rng As Range
Set sht = Worksheets("sheet1")
sht.Range("H12") = "=VLOOKUP(B$4,rev,3,FALSE)"
sht.Range("G12") = "=VLOOKUP(B$4,rev,3,FALSE)"
I want the G12 cell to reference C$4 without changing it in the macro
Just as it would if I have the formula in H12 and then drag it over t
G12 instead of using the macro.
Thanks a lot
macro work.
For Example:
Dim sht As Worksheet
Dim rng As Range
Set sht = Worksheets("sheet1")
sht.Range("H12") = "=VLOOKUP(B$4,rev,3,FALSE)"
sht.Range("G12") = "=VLOOKUP(B$4,rev,3,FALSE)"
I want the G12 cell to reference C$4 without changing it in the macro
Just as it would if I have the formula in H12 and then drag it over t
G12 instead of using the macro.
Thanks a lot