Link multiple cells with other cells and sync both ways

Status
Not open for further replies.

newbie22922792

New Member
Joined
Jan 20, 2021
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I have three sheets (Idea_Outline,Demand,Export) that have some cells that should be filled with identically information. To make it easier I would like to sync some cells with one another. If I enter something in K4(Idea_Outline), it should be visible in K4(Demand) and A2(Export), too. If I enter something in A2(Export) it should be visible in K4 & K4, and vice versa.
So far so good I have this working code (plus codes in sheets Demand & Export but slightly changed)

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("K4)") Is Nothing Then Exit Sub
    Application.EnableEvents = False
    Sheets("Demand").Range("K4") = Target
    Sheets("Export").Range("A2") = Target
    Application.EnableEvents = True
End Sub

Now I want to add other pairs of cells. How can I do this ? In the same sheet (Idea_Outline) I have also K5, which should be linked to K5 in Demand and B2 in Export.
I also have other pairs of cells in the same sheets. I only know how to write code for one pair of cells (as posted above). Your help is highly appreciated!
 

Some videos you may like

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,526
Office Version
  1. 365
Platform
  1. Windows
Duplicate to: Cross linking of cells in differents sheets with reciprocal syncing

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.
 
Status
Not open for further replies.

Watch MrExcel Video

Forum statistics

Threads
1,127,540
Messages
5,625,408
Members
416,100
Latest member
lirongr1996

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top