Forum Discussion
NinoPardini
Jul 04, 2019Copper Contributor
Shared cell between pages
Hey guys, i'm trying to make a cell that show the same value on two different pages of the worksheet, but when I change the value on page 2 for example it also changes on page 1, and when I change on ...
Berndvbatanker
Jul 04, 2019Iron Contributor
Hi Nino,
you can do it with a worksheet event. See attached file too. in this example the cells A4 and K4 react like a mirror.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Select Case Target.Address(False, False)
Case "A4"
Range("K4").Value = Target.Value
Case "K4"
Range("A4").Value = Target.Value
End Select
Application.EnableEvents = True
End Sub
Best regards
Bernd
https://vba-tanker.com/