Macro to filter sheet from start till the present month

I need to filter a sheet based on date where the sheet contains date of next month also. So, i need a macro where it will filter only till present month.

Eg- If we are in month August 2021 the sheet will contain data of next month September 2021 also which need to be filtered out. If the present month is September sheet will contain October month data in that case need to filter till September.

Read the sheet in as Datatable and use “Filter Data Table” activity

But using macro will do the job fast right?

I would say they are just as fast.
This is a UiPath forum so I recommend using UiPath activities.

But don’t let anyone stop you using Excel macros if you’re more comfortable with that.

Ok thanks @Keegan_Kosasih will try that