Excel linking cells

Hidden999

New Member
Joined
Mar 3, 2019
Messages
18
Hi guys,

I am making a worksheet and have a question regarding linking cells.

What I want to achieve:
Having two cells (on different sheets or not) which contain the same text.
So if I change the text in one cell it also changes in the other cell. Vice versa.
I've tried doing it just like this.

A1 contains formula (=B1)
B1 contains formula (=A1)

But then if you type it overwrites the formula.

Thanks in advance!
 
To jsut have it work on A1 change
Code:
If Target.Column = 1 Then
to
Code:
If Target.Address(0,0)= "A1" Then
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Again thanks for your help. Still my question: what if I want a row or just one certain cell? In what way does the code change?
 
Upvote 0
I showed you how to do it for one certain cell, to use row1 rather than column 1 just change .Column to .Row
 
Upvote 0
Thanks again mate. It doesnt work though. It says that the line with (Sheets ... Target.Value) doesnt work?!
 
Upvote 0
What was the exact error message?
Was in Run time error 9 subscript out of range?
 
Upvote 0
In that case you didn't change the values in red to your actual sheet names.
 
Upvote 0
Still doesn't work. It either gives an error and doesnt work or does nothing and doesnt work. I've a 100% changed the names correctly?!
 
Upvote 0
The error you named before. What I do is add the code to the worksheet and then change the red name into the name of the other worksheet. Then I save and a message pops up saying you're saving without marcros or something. Does it work for you then?
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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
Back
Top