Selected Answer
Hello Tdy,
Below is the solution I am offering. It is quite possible that John may provide a better one. Which ever one you like just remember to mark the answer as selected.
What you are looking to have happen can be achieved using the worksheet event Worksheet_Change. Each of the five sheets will have its own code. The worksheet event code is placed in the Worksheet Module. Press Alt+F11 to open the vba editor and then double click on a worksheet to open its code module.
Here is the code for the MAIN worksheet:
Private Sub Worksheet_Change(ByVal Target As Range)
' macro written by WillieD24 for TeachExcel
' sheet MAIN
Dim cAddress As Variant
' change value on TEAM A sheet
If Not Intersect(Target, Range("C13:S22")) Is Nothing Then 'Or Target.Cells.Count > 1 Then 'Resume Next
Application.EnableEvents = True
cAddress = Target.Address
Sheets("TEAM A").Range(cAddress).Offset(-10).Value = Target.Value
Application.EnableEvents = True
End If
' change value on TEAM B sheet
If Not Intersect(Target, Range("C26:S35")) Is Nothing Then 'Or Target.Cells.Count > 1 Then 'Resume Next
Application.EnableEvents = False
cAddress = Target.Address
Sheets("TEAM B").Range(cAddress).Offset(-23).Value = Target.Value
Application.EnableEvents = True
End If
' change value on TEAM C sheet
If Not Intersect(Target, Range("C39:S48")) Is Nothing Then 'Or Target.Cells.Count > 1 Then 'Exit Sub
Application.EnableEvents = False
cAddress = Target.Address
Sheets("TEAM C").Range(cAddress).Offset(-36).Value = Target.Value
Application.EnableEvents = True
End If
' change value on TEAM D sheet
If Not Intersect(Target, Range("C52:S61")) Is Nothing Then 'Or Target.Cells.Count > 1 Then 'Exit Sub
Application.EnableEvents = False
cAddress = Target.Address
Sheets("TEAM D").Range(cAddress).Offset(-49).Value = Target.Value
Application.EnableEvents = True
End If
End Sub
Here is the code for the TEAM A worksheet:
Private Sub Worksheet_Change(ByVal Target As Range)
' macro written by WillieD24 for TeachExcel
' sheet TEAM A
Dim cAddress As Variant
If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("C3:S12")) Is Nothing Then
Application.EnableEvents = False
' change value on MAIN sheet
cAddress = Target.Address
Sheets("MAIN").Range(cAddress).Offset(10).Value = Target.Value
Application.EnableEvents = True
End If
End Sub
The code for Team B, C, and D sheets is the same except for the Offset value.
B Offset is 23; C Offset is 36; D Offset is 49.
The attached file is your original file with the macros added.
Hope this helps.
Cheers :-)