I have excel in which column name “Posting Date” contains dates. I need to remove all rows which contains the dates greater than or equal to current date +1. How to do this . Can someone help. I used for each loop and if activity but it takes so much time when there is large data. Please suggest
try filter datatable and make sure you select remove
under condition set datecolumn = Now.AddDays(1).ToString("dd/MM/yyyy")
this is assuming your date format is dd/MM/yyyy otherwise change it to your own format
Here, DT is your Input Datatable, we can assign the filtered data back to the same datatable or Create a Clone of Input Datatable and assign the filtered data to it.
Let us know if the above Expression doesn’t work or it gives out an error.