View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Olamide Olamide is offline
external usenet poster
 
Posts: 10
Default loop to check cells for numbers between 2 number range

Tom the "Do While Selection < 89000 Or Selection 89176" will not work if
selection 89001/43

"Tom Ogilvy" wrote:

If ActiveCell < "89001/43"

--
regards,
Tom Ogilvy

"Olamide" wrote:

i have a code like this

Columns("A:A").Select ' Find Other Bank and Cash
On Error Resume Next
Selection.Find(What:="89001/43", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Select
If ActiveCell < 89001/43 Then
Range("A1").Select
Do While Selection < 89000 Or Selection 89176
Selection.Offset(1, 0).Select
Loop
End If

my problem is that the slash is alway converted to division. Can somebody
pls help me.

thanks