Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following code looks to see if an exam has gone or if there wasnt an
exam for that subjuect, hides the row the moves on untill the cell is blank. However, when i run it, it goes into a continues loop. Any ideas as to why? Thanks. Private Sub Workbook_Open() Application.ScreenUpdating = False Sheets("Exam Timetable").Select Range("A2").Select Do If ActiveCell.Value < Date Or ActiveCell.Value = "N/A" Then Selection.EntireRow.Hidden = True ActiveCell.Offset(1, 0).Select End If Loop Until ActiveCell.Value = "" End Sub -- Cheers, Ben Remove your.tonsils to reply "You only live once but if you do it right once is enough!" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Loop | Excel Discussion (Misc queries) | |||
for/next loop | New Users to Excel | |||
Find loop doesn't loop | Excel Discussion (Misc queries) | |||
Worksheet_Change - loop within a loop | Excel Programming | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming |