vba code to select data based on combo box and copy the the corresponding data rows to another sheet

anbarasi_r

New Member
Joined
May 19, 2015
Messages
7
Hi,

I'm looking for a macro code that copies certain rows from sheet1 to sheet2 when data is selected in combo box which will be placed in sheet2.

Eg: Sheet1 has following columns. ColA-name, ColB-active/inactive, ColC-Apr, ColD-status, ColE-on/off, ColF-Bill(0-1 numbers), ColG-code, ColH-May, ColI-status, ColJ-on/off, ColK-Bill(0-1 numbers), ColL-code, COlM-Jun and so for all months. There should be a combo box in sheet2 used for selecting different months like apr, may or june. When a month(may) is selected, only columns A and Columns I to K should be displayed in sheet2. And for rows that contain ColK if number is less than 1, ColL if code is 435 and colJ if the previous month has ON and current month has OFF or viceversa should be displayed.

Please help with the code.

Thanks in advance
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,216,477
Messages
6,130,879
Members
449,603
Latest member
dizze90

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