Filter choice selection based on combobox values

ocgMax

New Member
Joined
Sep 10, 2017
Messages
2
attachment.php

attachment.php

Hi, im trying to get the value from the combo box to filter the data in sheets as i dont use userform. but the combobox value cant be detected. i didnt know if i dont declared it as string or because of the value inside the combo box is too long. i used 2 code to add value in combo box (array & manually add . additem). When the user select the value inside combo box the ACO category will automatically filter to the selection only. :confused:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)


'COMBO BOX LIST




For Each cell In [Category]


    Me.cbo_cat.AddItem cell
    
    Next cell


'With cbo_cat
'.AddItem "A - Administration", 1
'.AddItem "B - Finance", 2
'.AddItem "C - Specialist", 3
'.AddItem "D - Industrial", 4
'.AddItem "E - Professional", 5
'.AddItem "F - Technical", 6
'.AddItem "G - ICT Network & Equipment", 7
'.AddItem "H - ICT Management Implementation & Support", 8
'.AddItem "I - Applications, Databases & Systems ", 9
'.AddItem "J - Transport", 10
'.AddItem "K - Education", 11
'.AddItem "L - Other", 12
'End With


End Sub
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,214,940
Messages
6,122,352
Members
449,080
Latest member
Armadillos

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