jim may
Well-known Member
- Joined
- Jul 4, 2004
- Messages
- 7,486
Rich (BB code):
Sub Foo()
Dim MyRow As Integer, MyColNum As Integer
Dim MyColLtr As String
MyValue = InputBox("Enter text value")
For Each C In Range("Rng")
If C.Row > 1 And C.Column > 1 Then
If MyValue = C Then
MyRow = C.Row
MyColNum = C.Column
MyColLtr = Application.WorksheetFunction.Address(MyRow, MyColNum, 4)
ActiveCell.Value = "Row " & MyRow & " and Column " & MyColLtr
Exit Sub
End If
End If
Next C
End Sub