+ Reply to Thread
Results 1 to 5 of 5

VBA autofilter different number of rows

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    62

    VBA autofilter different number of rows

    Hi all,

    I am a bit new with writing code in excel vba, and I am trying to write a macro that filters an area but everytime there are different number of rows. I have tried doing a trick and selecting an increadibly big range so that it works, but I was wondering if there was a way to do it without ahving to do that trick.

    ActiveSheet.Range("$A$2:$AK$25100").AutoFilter Field:=13, Criteria1:= _
    "Warrant"

    Ideally I would want to get rid of the range or put a range that changes.

    Thank you,

    Daniel

  2. #2
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: VBA autofilter different number of rows

    Rule no 5: Do not duplicate post


    Pls use the below post only
    http://www.excelforum.com/excel-prog...criterias.html

  3. #3
    Registered User
    Join Date
    08-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: VBA autofilter different number of rows

    ???? They are different posts...

  4. #4
    Registered User
    Join Date
    08-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: VBA autofilter different number of rows

    Managed to make it work with your solution on the other post!

    ActiveSheet.Range(Selection.Address)

    I will add to your reputation and mark this as solved!

  5. #5
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: VBA autofilter different number of rows

    Sorry and thanks...
    I thought it was the same post.....
    Sorry...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1