data validation

cybergremlin

New Member
Joined
Dec 11, 2018
Messages
22
Hi

Is it possible to link multiple data validation boxes?
What i mean is if i have a validation box in cell B1 and another in cell C1 when i update 1 the other also updates and visa versa?

thanks
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I have another data validation list in cell D1 so i also want that to update when i choose something from either B1/C1 and then if i choose somethin from D1 both B1 & C1 also update
 
Upvote 0
So you want B1 C1 and D1 to always be the same is this correct?

And is this the last one or do you have more.
 
Upvote 0
Try this:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified  12/13/2018  6:01:06 AM  EST
Application.EnableEvents = False
If Target.Column = 2 And Target.Row = 1 Then Range("C1,D1").Value = Target.Value
If Target.Column = 3 And Target.Row = 1 Then Range("B1,D1").Value = Target.Value
If Target.Column = 4 And Target.Row = 1 Then Range("B1,C1").Value = Target.Value
Application.EnableEvents = True
End Sub
 
Upvote 0
I could have written it like this:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified  12/13/2018  6:47:16 AM  EST
If Not Intersect(Target, Range("B1:D1")) Is Nothing Then
Application.EnableEvents = False
Dim r As Range
    For Each r In Range("B1:D1")
        If r.Value <> Target.Value Then r.Value = Target.Value
    Next
Application.EnableEvents = True
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,750
Messages
6,132,499
Members
449,730
Latest member
SeanHT

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