How to filter certain row when column contain certain value using vba?

ke9c

Board Regular
Joined
Jul 27, 2010
Messages
75
How to filter certain row when column contain certain value using vba? i try to manually add in filter using Excel, but it doesnt works, dont know why, anyone know how to write vba code to filter out rows of which some of its columns contain certain value?

Thanks​
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
What's your data range, which column do you need to filter and what are the criteria?
 
Upvote 0
Simply use the "Macro Recorder" to preform an AutoFilter. It will do most of the work for you, giving you the proper syntax!! THen post that code and we may be able to simplify it or add ways to use variables for you Field and Criteria!!
lenze
 
Upvote 0
Thanks, may i know is there a way i can upload my Excel? i dont see upload attachment in the advanced option. thanks
 
Upvote 0
Thanks, may i know is there a way i can upload my Excel? i dont see upload attachment in the advanced option. thanks
You cannot upload a file to this forum but you can post small screen shots. Here are a few ways:

Excel jeanie
or
RichardSchollar’s beta HTML Maker
or
Borders-Copy-Paste

However, if you had answered the questions you have been asked, or followed the advice given in the responses so far, you would probably have your code working by now. :biggrin:
 
Upvote 0

Forum statistics

Threads
1,213,565
Messages
6,114,338
Members
448,570
Latest member
rik81h

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