How to I create a Custom Autofilter in VBA for date input (message box)

vbanewbie68

Board Regular
Joined
Oct 16, 2021
Messages
171
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi


With your help is it possible to create a Custom AutoFilter in VBA for example like this in the screenshot below?


1657640018360.png


Below my routine task

I download data from a platform once a month. Some of the data is old and the rest of it is new. So, it is all mixed up with new data and old data.

Also for your information the dates in the column D (last_modified_at) are not in the correct order too.

I use a date from the previous month that has already been updated on a database.

I use is Custom AutoFilter as shown in screenshot below.

I enter the date as this 2021-12-18T16:57:41 UTC. This means I am looking for the data before that or equal that date and then delete it immediately because the data of that is old and already been updated onto the database in the previous month.

I need to focus on a new data after that date onward.

1657640076126.png


Finally, below is the final finished report. I will save it as a file ready to import onto the database.

1657640105588.png


Your help on this matter would be much appreciated.

Thank you :)

Best regards

V
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,213,558
Messages
6,114,297
Members
448,564
Latest member
ED38

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