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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,100
Messages
6,128,825
Members
449,470
Latest member
Subhash Chand

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