In one sheet, if the value in column A is "(HAT)" then the columns next to it are 123, 456, 789, 101, respectively. (These are made up data). The problem is those data are in another sheet and I am not sure how to reference them since VBA is in R1C1 form and the location of the data in the first sheet may change. This is what I currently have:
For i = 0 To 40
If Range("A1").Offset(i, 0).Value = "(HAT)" Then
Range("C1").Offset(i, 0).Value = "123"
Range("D1").Offset(i, 0).Value = "456"
Range("E1").Offset(i, 0).Value = "789"
Range("F1").Offset(i, 0).Value = "101"
End If
Next i
Bookmarks