Hi guys.. my very first post to this site
What I am trying to do here is making a two way input range in two different sheets
That is, if I put anything in "A:A" Column(or specific range) in sheet1, it will appear on sheet2 "C:C" column(or specific range). Also, if I revise it on Sheet2 range, the changes will be automatically applied to the range in sheet1.
Hopefully I am making sense here.
I have tired to learn it on my own.. but stuck
For Sheet1
For Sheet2
Thank you in advance for everything.
What I am trying to do here is making a two way input range in two different sheets
That is, if I put anything in "A:A" Column(or specific range) in sheet1, it will appear on sheet2 "C:C" column(or specific range). Also, if I revise it on Sheet2 range, the changes will be automatically applied to the range in sheet1.
Hopefully I am making sense here.
I have tired to learn it on my own.. but stuck
For Sheet1
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim r1 As Range, r2 As Range
Set r1 = Sheet1.Range("Range1")
Set r2 = Sheet2.Range("Range2")
If Intersect(Target, r1) Is Nothing Then Exit Sub
' Range.(Target.Address).Value
r2.Value = r1.Value
End Sub
For Sheet2
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim r1 As Range, r2 As Range
Dim c As Range
Set r1 = Sheet2.Range("Range2")
Set r2 = Sheet1.Range("Range1")
If Intersect(Target, r1) Is Nothing Then Exit Sub
If r2.Value <> r1.Cells.Value Then
r2.Value = r1.Value
End If
End Sub
Thank you in advance for everything.