I am trying to search active cell's value of top 5 cells in a column. It will work smoothly if there is no filter added with offset(1,0) method. But when I am adding filter the offset method doesn't work on visible cells. It goes below the active cell(non visible cell).
How can I search active cell value 1 by 1 i.e. top 5 while having a filter ?
Below is the code for without filter:
Sub searchActiveCellPr()
Dim query As String
Dim search_string As String
Dim iedgepath As String
Dim i As Long
For i = 1 To 5
query = ActiveCell.Text
Shell ("C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe -url http:google.com/search?q=" & search_string)
ActiveCell.Offset(1, 0).Select
ActiveCell.Offset(1, 0).SpecialCells(xlCellTypeVisible).Select 'This one also not working
Next i
End Sub