Setting a userform combo value from a worksheet cell value

NubeLube

New Member
Joined
Jul 10, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi my first post so sorry, I have a userform with a few combo boxes on it three of them I can update the values but one will not update. Its the only one that triggers some code but I am happy to run the code after.

Code:
Me.TextBox1.Value = Range("E14").Value            ' works fine'
Me.TextBox2.Value = Range("H14").Value                               ' works fine'
MeCmboType.ComboType.Text = Range("U14").Value          '[COLOR=rgb(184, 49, 47)] [/COLOR][COLOR=rgb(65, 168, 95)]this combo box does not update the value[/COLOR]
Call CmboType_Change                                                         ' this is the macro triggered by the combo box if ran from form
Me.ComboBox2.Text = Range("L14").Value                           ' this combo box works fine
Me.ComboBox3.Text = Range("M14").Value                          ' this combo box works fine
Me.ComboBox4.Text = Range("N14").Value                          ' this combo box works fine
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Instead of this
MeCmboType.ComboType.Text = Range("U14").Value
you probably meant this
VBA Code:
Me.CmboType.Text = Range("U14").Value
 
Upvote 0
Lol, I looked at that code so many time and did not spot that. That was the fault. Sorry but a big thank you!!
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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