Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
for...next including if function and or function
Hi, I do not knwo what is wrong with my code:
sub cleanisup() Dim i As Long For i = 1 To 700 If Range(Cells(i, 6)).Value = "long" Or "CR" Then ' if the value is not long or CR then ActiveCell.Rows("1:1").EntireRow.Select 'activate the whole row Selection.Delete Shift:=xlUp ' delete this activated row End If Next i ' test next cell End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need Help with Sumif Function including dates | Excel Worksheet Functions | |||
SUMPRODUCT with criteria including OR function | Excel Discussion (Misc queries) | |||
lookup function, in which the table's name is including in another | Excel Discussion (Misc queries) | |||
Subtraction when including the MOD() function | Excel Worksheet Functions | |||
Workday function including sat, excluding sun | Excel Worksheet Functions |