Setting a userform combo value from a worksheet cell value

NubeLube

New Member
Joined
Jul 10, 2020
Messages
3
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
 

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

GWteB

Well-known Member
Joined
Sep 10, 2010
Messages
1,295
Office Version
  1. 2013
Platform
  1. Windows
Instead of this
MeCmboType.ComboType.Text = Range("U14").Value
you probably meant this
VBA Code:
Me.CmboType.Text = Range("U14").Value
 

NubeLube

New Member
Joined
Jul 10, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Lol, I looked at that code so many time and did not spot that. That was the fault. Sorry but a big thank you!!
 

Watch MrExcel Video

Forum statistics

Threads
1,123,014
Messages
5,599,345
Members
414,306
Latest member
Dennis_vdw

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
Top