How to edit "ComboBox" at Userform option

2avrham

Board Regular
Joined
May 12, 2014
Messages
104
Office Version
  1. 365
Hi,

I want to set one of my columns to "ComboBox" drop down selection at Userform option and I wonder how can i do it.

What I would to get in the end is drop box selection with "WIP", "Hold","Ready" choices selection and after I chose one of them the data is filtered according to it.

My column data:

[TABLE="width: 103"]
<tbody>[TR]
[TD]vpo_status[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]Hold[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]Done[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]Ready[/TD]
[/TR]
[TR]
[TD]Ready[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]WIP[/TD]
[/TR]
[TR]
[TD]WIP


Thanks!![/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 
These 3 lines
Code:
Option Explicit
Private Dic As Object
Private ws As Worksheet
Need to go at the very top of the module, before any code.
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Thanks, now it works but after I click on one of my items the sheet becomes empty. :(
 
Upvote 0
Try
Code:
Private Sub Product_Filter_Change()
If ws.AutoFilterMode Then ws.AutoFilterMode = False
ws.Range("A5:T5").AutoFilter 5, Me.product_filter.Value
End Sub
Also have you seen post#12?
If so, have you asked this question anywhere else?
 
Upvote 0
thanks it works great!

Regarding post 12 I do ask it and I remove it. sorry about it.
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,121
Members
452,545
Latest member
boybenqn

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