With ActiveSheet.Range("A:A")
.Find(What:="BEL*", After:=ActiveCell.EntireRow.Cells(1, 1), LookIn:=xlValues, LookAt:=xlWhole, _
SearchDirection:=xlNext, MatchCase:=False).Activate
End With
How aboutCode:Sub omairhe() Dim Fnd As Range Set Fnd = Range("A:A").Find("BEL*", , , xlWhole, , , False, , False) If Not Fnd Is Nothing Then Application.Goto Fnd, True End Sub
Try this
Code:With ActiveSheet.Range("A:A") .Find(What:="BEL*", After:=ActiveCell.EntireRow.Cells(1, 1), LookIn:=xlValues, LookAt:=xlWhole, _ SearchDirection:=xlNext, MatchCase:=False).Activate End With
This is case insensitive.
Almost. It is now keeping the column as before but not selecting the target row.How aboutCode:Sub omairhe() Dim Fnd As Range Set Fnd = Range("A:A").Find("BEL*", , , xlWhole, , , False, , False) If Not Fnd Is Nothing Then ActiveWindow.ScrollRow = Fnd.Row End Sub
whereas I would like it to select target row and keep column reference as before
Sub omairhe()
Dim Fnd As Range
Set Fnd = Range("A:A").Find("BEL*", , , xlWhole, , , False, , False)
If Not Fnd Is Nothing Then Cells(Fnd.Row, ActiveCell.column).Activate
End Sub
Ok, how aboutCode:Sub omairhe() Dim Fnd As Range Set Fnd = Range("A:A").Find("BEL*", , , xlWhole, , , False, , False) If Not Fnd Is Nothing Then Cells(Fnd.Row, ActiveCell.column).Activate End Sub