Linking Rows or columns

deadduck456

New Member
Joined
Aug 22, 2014
Messages
2
I am not sure weather this is possible or not but i would like to know weather it is possible to link rows so that is you change something in one column it changes it in the other.
Any advice is appreciated,
deadduck456
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
deadduck456, Good morning.

I'm not sure if I understood well your question.

If you want one cell or row or column be EQUAL at any other cell, row or column it's necessary only to use at a cell that will be changed automatically, a formula.

Origin Cell --> A10
Automatically filled Cell --> C1 receives a formula =A10.
Then all the times you update A10, C1 changes automatically.

Is it what you want?
I hope it helps.
---------------------
Belo Horizonte, Brazil.
 
Upvote 0
You could do something like this:
On the WorkSheet:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    RangeChange
End Sub
and then in a module
Code:
Sub RangeChange()
    Application.EnableEvents = False
    If ActiveCell.Column = 3 Then
        If ActiveCell.Row = 1 Then
            Range("A10") = Range("C1")
        End If
    ElseIf ActiveCell.Column = 1 Then
        If ActiveCell.Row = 10 Then
             Range("C1") = Range("A10")
        End If
    End If
    Application.EnableEvents = True
End Sub
The reason to use the module is because
Code:
Application.EnableEvents
does not work well in the workbook or worksheet on event changes.
 
Upvote 0
One more thing...

There are 2 weaknesses with using
Code:
[COLOR=#333333]Private Sub Worksheet_Change(ByVal Target As Range)[/COLOR]
When one of these cells are changed the change must be finalized by using the [Enter] key.
1. If you finalize your change by clicking another cell with your mouse you just changed the activecell and ir will not run the macro.
2. If the 'Move Selection on Enter' option is active you just changed the activecell and ir will not run the macro. This option is found in the 'Edit' section of your options menu.

Hope this helps
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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