Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I need to delete the rows based on the date in Col A. I have written the following macro but it want work. Even it does not give any errors. My Code : ============ Sub Date_Single() Range("A1").Select Do While Not IsEmpty(ActiveCell.Offset(1, 0).Value) If ActiveCell.Offset(1, 0).Value = "10/21/2003" ActiveCell.Offset(1, 0).EntireRow.Delete shift:=xlUp End If ActiveCell.Offset(1, 0).Select Loop Range("A1").Select End Sub ============= All the cells in Col A is formated as date (27-Feb-04 format) and I ensure this with the data velidation. Can somebody please tell me what went wrong? Regards, Shetty. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro warning - how to delete macro | Excel Worksheet Functions | |||
Macro to delete rows based on date | Excel Discussion (Misc queries) | |||
delete a macro that isn't in macro list | Excel Discussion (Misc queries) | |||
How can I delete a macro when the Delete button is not active? | Excel Worksheet Functions | |||
How do i delete a macro in Excel 2003 when delete isn't highlight | Excel Discussion (Misc queries) |