I am using this to make sure I am in one of these cells before my macro runs, is there and easier way to write this
Thanks
Code:
'check to see if you are in the right cells
If _
ActiveCell.Address = Range("A4").Address Or ActiveCell.Address = Range("G4").Address Or _
ActiveCell.Address = Range("M4").Address Or ActiveCell.Address = Range("S4").Address Or _
ActiveCell.Address = Range("A12").Address Or ActiveCell.Address = Range("G12").Address Or _
ActiveCell.Address = Range("M12").Address Or ActiveCell.Address = Range("S12").Address Or _
ActiveCell.Address = Range("A20").Address Or ActiveCell.Address = Range("G20").Address Or _
ActiveCell.Address = Range("M20").Address Or ActiveCell.Address = Range("S20").Address Or _
ActiveCell.Address = Range("A28").Address Or ActiveCell.Address = Range("G28").Address Or _
ActiveCell.Address = Range("M28").Address Or ActiveCell.Address = Range("S28").Address Or _
ActiveCell.Address = Range("A36").Address Or ActiveCell.Address = Range("G36").Address Or _
ActiveCell.Address = Range("M36").Address Or ActiveCell.Address = Range("S36").Address Or _
ActiveCell.Address = Range("A44").Address Or ActiveCell.Address = Range("G44").Address Or _
ActiveCell.Address = Range("M44").Address Or ActiveCell.Address = Range("S44").Address Or _
ActiveCell.Address = Range("A52").Address Or ActiveCell.Address = Range("G52").Address Or _
ActiveCell.Address = Range("M52").Address Or ActiveCell.Address = Range("S52").Address Or _
ActiveCell.Address = Range("A60").Address Or ActiveCell.Address = Range("G60").Address Or _
ActiveCell.Address = Range("M60").Address Or ActiveCell.Address = Range("S60").Address Or _
ActiveCell.Address = Range("A68").Address Or ActiveCell.Address = Range("G68").Address Or _
ActiveCell.Address = Range("M68").Address Or ActiveCell.Address = Range("S68").Address Or _
ActiveCell.Address = Range("A76").Address Or ActiveCell.Address = Range("G76").Address Or _
ActiveCell.Address = Range("M76").Address Or ActiveCell.Address = Range("S76").Address Then
Thanks