Sub test()
Dim x As String
x = "wx" ' or say 2312
MsgBox Range("B9:B42").Find(What:=x, LookIn:=xlFormulas,
LookAt:=xlWhole).Address
End Sub
--
XL2002
Regards
William
(e-mail address removed)
| Is there any VBA code for Excel 97 that will return a
| specific cell address that can be located only by values
| in other cells?
Set oCell = Range("B2:B42").Find(What:=x, LookIn:=xlFormulas,
LookAt:=xlWhole)
If Not oCell Is Nothing Then
Msgbox oCell.Address
End If
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.