I have the following in the attachment
i tried to use the following macro to obtain the number of row of the first item when i filter this list to "Retail" only. the macro should show a message box with the number "3" according to the firt "retail" is in row 3, but ot keeps sending me the number "1"
Sub Macro1()
Range("A1").Select
SendKeys "{DOWN}"
FirstRow = ActiveCell.Row
MsgBox (FirstRow)
End Sub
the message box should say "3"
Try this code (assuming data is in Column
A):If you need the first row which is visible, you can use also
Find("*")