Help with an if...then error message
Posted by John on December 14, 2000 6:57 AM
I am a newbie to programming and have run into a problem with this procedure:
' Clean up unnecessary data
For counter = 1 To 1000
Set curcell = Worksheets("Sheet1").Cells(counter, 3)
If curcell.Value = ("*" Or "***") Then Next counter
Set curcell = Range(Cells(counter, 1), Cells(counter + 1000, 20))
curcell.ClearContents
Whenever I try and run these lines, I always receive a compile error of "block if without end if"
The intent here is to move down a column in a sorted list until one finds a cell not containing "*" or "***" and then to clear all the remaining data below lines containing the matching cells.
Any help is appreciated!
thx