Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
this compares dates in column A and removes rows where the date is less than
Today's date For r = 100 To 2 Step -1 If Cells(r, "A") < Date Then Rows(r).Delete Next r I am assuming you mean expiry dates earlier than today. HTH "simoncottle" wrote: Hi I want to write a macro which allowed me to automatically remove data which had expired past today's date? Has anyone got a clue as to how this is done? -- simoncottle ------------------------------------------------------------------------ simoncottle's Profile: http://www.excelforum.com/member.php...o&userid=33122 View this thread: http://www.excelforum.com/showthread...hreadid=529323 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I remove redundant rows at end of sheet? | Excel Discussion (Misc queries) | |||
Excel 2002 date entry: Cannot get away from d-m-yy entry format | Excel Discussion (Misc queries) | |||
Remove last <li entry from cells | Excel Discussion (Misc queries) | |||
remove entry from namebox | Excel Discussion (Misc queries) | |||
remove add-in entry via registry | Excel Programming |