combo box default value

jtodd

Board Regular
Joined
Aug 4, 2014
Messages
194
I have a form with 2 combo boxes, I would like what is selected in the first box to apear in the second but still have the option to change the data in the second box ie
if the user selects "Jim" in the first box "Jim" appears in the second box , the user can then either leave "Jim" in both boxes or select a different name in the second box.

So there would be a primary name and a secondary name but if they were the same the user would not have to change the second name.

Hope this makes sense??
 

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.
Try This:
Code:
Private Sub ComboBox1_Change()
ComboBox2.Value = ComboBox1.Value
End Sub
 
Upvote 0
Glad I was able to help you. Come back here to Mr. Excel next time you need additional assistance. Take care
 
Upvote 0

Forum statistics

Threads
1,221,846
Messages
6,162,378
Members
451,760
Latest member
samue Thon Ajaladin

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