VBA : Open - Filter Criteria - Delete Rows

nsundarv

New Member
Joined
May 25, 2018
Messages
3
Dear Friends, I'm new to VBA, I need accomplish a task of regular activity in my work. The requirement 1. Open the file from location 2. Go to sheet name Day -1( sheet name will be "_0714") filter and keep only Day-1 data in Date column. second Filter Gender Column keep only MALE. This task should be repeated for all the files in the folder.Please help.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Some items in your request are not clear:

>>>Go to sheet name Day -1( sheet name will be "_0714") filter

You say the sheet name will be "Day -1" and it will be "_0714"
Which one is it?
Do the sheets have a fixed name or are they based on a date?
Is the date in the file name? What is the format for the file name?
What is the format for the sheet name? Looks like "_MMDD"


>>>keep only Day-1 data in Date column.

Is "Day-1" an actual entry in the date column or is this another date reference?
Is the Date column Column A ?


>>>Filter Gender Column keep only MALE.

Is the Gender column Column B?
So delete the non-MALE rows? or just hide them?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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