Hi all,
I am making a from, but I am strugling with something.
The idea is;
I have 2 cells:
- Cell A1 of Tab1
- Cell B1 of Tab2.
Both values should be the same.
So if I wirte something in Cell A1 it should apear in B1
But if I write somthing in B1, it should be the same in A1
Ofc. I tried some things:
1.) the simple formule:
In Cell A1 =B1
In Cell B1 =A1
But it only works 1x, then the formule is overwritten.
2.) (I found on internet)
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Not Intersect(Range("A1"), Target) Is Nothing Then
Range("B1") = Range("A1")
End If
If Not Intersect(Range("B1"), Target) Is Nothing Then
Range("A1") = Range("B1")
End If
End Sub
But when I do thing, Excel closes down.....so something is not correct there
Anybody got an idea?
Thank you
I am making a from, but I am strugling with something.
The idea is;
I have 2 cells:
- Cell A1 of Tab1
- Cell B1 of Tab2.
Both values should be the same.
So if I wirte something in Cell A1 it should apear in B1
But if I write somthing in B1, it should be the same in A1
Ofc. I tried some things:
1.) the simple formule:
In Cell A1 =B1
In Cell B1 =A1
But it only works 1x, then the formule is overwritten.
2.) (I found on internet)
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Not Intersect(Range("A1"), Target) Is Nothing Then
Range("B1") = Range("A1")
End If
If Not Intersect(Range("B1"), Target) Is Nothing Then
Range("A1") = Range("B1")
End If
End Sub
But when I do thing, Excel closes down.....so something is not correct there
Anybody got an idea?
Thank you