Re: Find in a column
- From: "Norman Jones" <normanjones@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 10 Apr 2007 22:20:15 +0100
Hi Francis,
Try something like:
'============>>
Dim RngFound As Range
Const sSearchString As String = 44 '<<==== CHANGE
Set RngFound = rng.Find(What:=sSearchString, _
After:=rng.Cells(1), _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not RngFound Is Nothing Then
'do something, e.g:
MsgBox RngFound.Row
End If
'<<============
---
Regards,
Norman
"Francis Hookham" <fh.2.net@xxxxxxxxxxxx> wrote in message
news:%235XiwR7eHHA.1244@xxxxxxxxxxxxxxxxxxxxxxx
In a subroutine I need to find which row where a specific numeral occurs
in a column A. numbers will start in A4 and there may be blank cells in
the column.
The Module already has the following
LastUsedRow = Cells(Rows.Count, 1).End(xlUp).Row
to find the range:
Range(cells(4,1),cells(LastUsedRow,1))
How do I carry on from there to find NumberRow?
Thanks
Francis Hookham
.
- Follow-Ups:
- Re: Find in a column
- From: Francis Hookham
- Re: Find in a column
- From: JLGWhiz
- Re: Find in a column
- References:
- Find in a column
- From: Francis Hookham
- Find in a column
- Prev by Date: Avoiding an error
- Next by Date: Re: Subquery Confusion
- Previous by thread: Find in a column
- Next by thread: Re: Find in a column
- Index(es):
Relevant Pages
|