Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 471
Default Macro Question

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Question David Excel Discussion (Misc queries) 3 April 30th 10 02:25 PM
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
Macro Question ALoecher New Users to Excel 3 March 9th 06 10:12 PM
Macro question G-MAN Excel Programming 4 October 23rd 04 05:05 PM
Macro Question Phatchef24[_6_] Excel Programming 1 September 16th 04 12:02 AM


All times are GMT +1. The time now is 12:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"