Been spinning my wheels on this for a while....
I have the following code that works for bi-directionally linking 2 cells, (on same sheet for now), placed in the Worksheet_Change Sub.
However, I have 150 pairs of cells in multiple, non-contiguous columns, I want to link. I can copy the code for the other 149 pair of cells, but thinking there has got to be a better way to accomplish this.
I need to bi-directionally link the following....
E8:E37, I8:I37, L8:L37, O8:O37, R8:R37, top to bottom, left to right, starting with E8.....with AE8:AE157
Thanks in advance for any and all help.
I have the following code that works for bi-directionally linking 2 cells, (on same sheet for now), placed in the Worksheet_Change Sub.
VBA Code:
If Not Intersect(Target, Range("E8")) Is Nothing Then
Application.EnableEvents = False
Range("AE8") = Range("E8")
Application.EnableEvents = True
End If
If Not Intersect(Target, Range("AE8")) Is Nothing Then
Application.EnableEvents = False
Range("E8") = Range("AE8")
Application.EnableEvents = True
End If
However, I have 150 pairs of cells in multiple, non-contiguous columns, I want to link. I can copy the code for the other 149 pair of cells, but thinking there has got to be a better way to accomplish this.
I need to bi-directionally link the following....
E8:E37, I8:I37, L8:L37, O8:O37, R8:R37, top to bottom, left to right, starting with E8.....with AE8:AE157
Thanks in advance for any and all help.