LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default 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
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
Need Help with Sumif Function including dates KDenise Excel Worksheet Functions 6 May 31st 10 04:47 AM
SUMPRODUCT with criteria including OR function Struggling in Sheffield[_2_] Excel Discussion (Misc queries) 4 April 22nd 10 10:23 AM
lookup function, in which the table's name is including in another Giannis Excel Discussion (Misc queries) 3 October 17th 07 05:02 AM
Subtraction when including the MOD() function Gadgets Excel Worksheet Functions 5 July 26th 06 11:04 PM
Workday function including sat, excluding sun Handyy Excel Worksheet Functions 3 February 23rd 06 06:35 AM


All times are GMT +1. The time now is 09:08 PM.

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

About Us

"It's about Microsoft Excel"