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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,214,826
Messages
6,121,795
Members
449,048
Latest member
greyangel23

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