+ Reply to Thread
Results 1 to 4 of 4

AutoFilter Macro Question

  1. #1
    Registered User
    Join Date
    08-06-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    13

    AutoFilter Macro Question

    Hi All- I am new to this forum and need some help on a macro that i am trying to complete.

    I am trying to filter a certain item from my macro, but the problem is that my data will sometimes have 100 rows or 500 rows. When i try to do the macro with other data, it will only grab up to row 301. I have been playing around with the VBA, but have had no luck. I basically want the filter to automatically grab all of Column M or up to row 1000- whichever is easier.

    Here is the VBA:

    Range("M1").Select
    Selection.AutoFilter
    ActiveSheet.Range("$A$1:$M$301").AutoFilter Field:=13, Criteria1:= _
    "FY13/14 PERIOD 1"

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: AutoFilter Macro Question

    Please Login or Register  to view this content.

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: AutoFilter Macro Question

    Hi, viinncceee,

    please note to put code-tags around your procedure when posted here.

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    08-06-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: AutoFilter Macro Question [SOLVED]

    Thank you both!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. AutoFilter Question
    By kwalsh033 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2013, 11:03 AM
  2. autofilter macro question
    By babar48 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2011, 01:35 AM
  3. AutoFilter Question
    By M35514H in forum Excel General
    Replies: 2
    Last Post: 09-05-2008, 02:59 PM
  4. [SOLVED] AUTOFILTER QUESTION
    By Dan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2005, 01:06 PM
  5. Question about Autofilter...
    By Richard Latter in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-28-2005, 01:06 PM

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