Dependant Command Box

mhudsora

New Member
Joined
Sep 26, 2010
Messages
10
Hello all,
Simple example:

  • I have two command boxes on a userform
  • I have populated those command boxes with the value: "apples" and "oranges"
  • The user selects "apples" in the first command box
  • How do i remove the value "apples" from the second command box?
Thanks!
mhudsora
 

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.
Getting weird runtime error from code that should work:

For x = 0 To (ufEditValue.cbValue1.ListCount - 1)
If ufEditValue.cbValue1.List(x) = ufEditValue.cbValue2 Then ufEditValue.cbValue1.RemoveItem (x): Exit For
Next x

Runtime error is as follows:

Excel run-time error '-2147467259(80004005)'
Unspecified error

Any help would be great, Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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