Automate An AutoFilter Of Raw Data By Month/Year That's In Date Serial Format

milwphil

Board Regular
Joined
Aug 1, 2010
Messages
120
Good morning!

Does anyone have any suggestions, resources or example solutions of a macro that will allow me to Autofilter raw data by (MM/YYYY) that is received in the date serial (ddddd.tttttt) format?

Background
Basically, I have a user form that is intended act as a simple query interface. They essentially start with a comprehensive data set (year to date data) which is in the background. When they select the Month/Date range and Company the Autofilter macro runs to only run pivots (on visible worksheets) off of that data.

Example:
The user can select Quahog LLC or The Drunken Clam LLC or Combined...then they are provided a date range selection (MM/YYYY). The user selects enter and the raw data autofilters based on the selection.

I'm stuck....the date thing is really throwing me for a loop. If this is a huge effort and I'm over simplifying---that may need to be all the feedback I need to know.

However, if anyone has a suggestions on how to deal with the date filter, I'd be very appreciative!

Thanks in advance!
Phil
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,224,609
Messages
6,179,875
Members
452,949
Latest member
Dupuhini

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