Hi guys,
I need help deleting rows which contain a cell with date / time in the format dd/mm/yyyy hh:mm if the value is older than the current date / time
any ideas?
thanks
Hi guys,
I need help deleting rows which contain a cell with date / time in the format dd/mm/yyyy hh:mm if the value is older than the current date / time
any ideas?
thanks
Last edited by mattmac; 04-01-2009 at 11:10 AM.
More info please...
Where are the dates located (range-wise) ?
Are the date time values listed in any sort of order ?
Is the Current Date always listed ?
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Sorry,
dates are in column S and there could be any number of rows.
dates are in format dd/mm/yyyy hh:mm (all in one column) and they have not been soretd.
The current date / time isn't listed, I just want to pull that from the system clock.
Thanks
One way.. possibly...
Assumes S1 is a header value and first datetime value appears in S2![]()
Please Login or Register to view this content.
Acutally i'm getting an error:
runtime error 1004
autofilter method of range class failed
at this bit:
.AutoFilter Field:=1, Criteria1:="<" & CDbl(Now)
Last edited by mattmac; 04-01-2009 at 10:22 AM.
Hi,
Try this :
Regards,![]()
Please Login or Register to view this content.
Shekar.
Ahh thats it cheers!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks