Need help with macro for filtering worksheet data based on combobox control

preetypj

New Member
Joined
Aug 14, 2014
Messages
4
Hi folks,

I am new to vba coding and struggling with a simple task.

The requirement is that I have an excel document with two worksheets. One of the worksheet has just got a combo box and the other worksheet has data.

The data in worksheet contains columns out of which one column is Year.

I want the data sheet to be filtered based on the year chosen in combo box.

Will really appreciate if someone could help me.

Thanks
Preeti
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I am not sure if I understood you correctly. First sheet has Combobox? do you mean combobox from the macro or you just created some kind of menu with drop down menu in this sheet?
 
Upvote 0
I am not sure if I understood you correctly. First sheet has Combobox? do you mean combobox from the macro or you just created some kind of menu with drop down menu in this sheet?


Hi,

I have inserted an ActiveX control - Combo box in the first worksheet. I want to assign a macro that filters the data in my next worksheet based on the Year value chosen in combo box click.

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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