What is the correct syntax for telling VBA
"consider the value in sheet_1 in the cell that has offset (0,i) from the activecell" ?
I tried with
Sheets("sheet_1").ActiveCell.Offset(0, i).Range("A1").Value
but it gives me
runtime error 438
Please note that my aim is to do:
If Sheets("sheet_1").ActiveCell.Offset(0, i).Range("A1").Value = Sheets("sheet_23").ActiveCell.Offset(0, i).Range("A1").Value Then
'do something