Hello,
I have 2 workbooks(WB1,WB2). I need to Copy Data from WB1 to WB2.
WB2 has a column ‘Date’ , the condition is I need to Copy all Rows if they are Greater than 48 Hours old to Current Date.
Any idea or suggestions would be appreciated.
Thanks
Hello @Gagan_Chaudhari
Please try the below code to get the date of the day before yesterday,
now.AddDays(-2).ToString(“dd.MM.yyyy”)
Store the above to a new variable, compare the dates in the workbook with the newly created variable. Check whether the dates are less than the newly created variable.