I would think that x.Row would work:
Set x = Range("sales" & CD).Find(CP)
'selects the correct range Need to get row number
MsgBox = x.Row
> CP will always be found in column "A"
> There will always be only one occurrence of CP in the range.
[quoted text clipped - 38 lines]
> End If
> End Function
Jim Thomlinson - 10 Dec 2007 23:37 GMT
When you do a find you need to specify most of the optional arguments. If you
don't specify then they system will use whatever the last setting set by the
user. Additionally while you have said that the value will always be found,
you are still better off to check to see if it was actually found (as opposed
to generating an error) so something like this...
Dim rngFound As Range
Dim lng As Long
Set rngFound = Columns("A").Find(What:=cp, _
LookAt:=xlWhole, _
LookIn:=xlValues, _
MatchCase:=False)
If rngFound Is Nothing Then
MsgBox cp & " not found"
Else
lng = rngFound.Row
'Carry On
End If

Signature
HTH...
Jim Thomlinson
> I would think that x.Row would work:
>
[quoted text clipped - 44 lines]
> > End If
> > End Function