Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
Sub doit() Cells(1, 1).Select Do While True If ActiveCell.Value = Empty Then Exit Do ' I am assuming there is always something in column A so you use that 'as the basis to do your search... End If If Cells(ActiveCell.Row, 1).Value = "Monday" Or Cells(ActiveCell.Row, 1) = "Tuesday" Or Cells(ActiveCell.Row, 1).Value = "Wednesday" Then If Cells(ActiveCell.Row, 6).Value < "NOT" Then Rows(ActiveCell.Row & ":" & ActiveCell.Row).Select Selection.Delete Shift:=xlUp Else Cells(ActiveCell.Row + 1, 1).Select End If Else Cells(ActiveCell.Row + 1, 1).Select End If Loop End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Question | Excel Discussion (Misc queries) | |||
Excel 2007 Macro/VB Question DDE Question | Excel Worksheet Functions | |||
Macro Question | New Users to Excel | |||
Macro question | Excel Programming | |||
Macro Question | Excel Programming |