Hello Cheeky,
ActiveCell is not a Worksheet object, but a global Application object. As such it doesn't require you to qualify it with a parent object, i.e. Worksheet name. Excel will take the ActiveCell from the ActiveSheet. If you need "Sheet1" active then you need to place that in the code. I have done so for you and made it comment. You can remove the single quote if you need "Sheet1" active.
If Sheet6.Range("O8").Value = 4 Then
For Each cell In Sheet10.Range("B5", "B369")
If (cell.Value = Sheet6.Range("L24").Value) Then
'Sheet1.Activate
cell.Offset(0, Sheet6.Range("L21").Value).Value = ActiveCell.Value
End If
Next cell
End If
Sincerely,
Leith Ross
Bookmarks