• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Go to first blank cell after autofilter

Hi Friends,

I have data table, and I applied autofilter to it with "less than" condition and value as 100 (in this case). Then how can I directly go to cell B17 (First visible cell immediately after the header row after applying filter).

My idea is to exit the procedure if the filtered range does not give any result based on the input data. Like in the above case there are not data in the autofilter table, so the sub procedure should exit it from there.

Please find the sample file attached for your reference.

Thanks & Regards,
Manish
 

Attachments

  • Go to first blank cell after autofilter.xlsm
    10.3 KB · Views: 20
Hi, code for above is

Code:
With Worksheets("ur worksheet name").AutoFilter.Range
  Range("A" & .Offset(1, 0).SpecialCells(xlCellTypeVisible)(1).Row).Select
End With
 
Last edited by a moderator:
Back
Top