+ Reply to Thread
Results 1 to 3 of 3

Filter by unknown criteria problem

  1. #1
    Registered User
    Join Date
    02-03-2011
    Location
    Keighley, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Filter by unknown criteria problem

    Hi all,

    Please can someone help, can't seem to find a solution for this.

    I have a macro set up that organises a filtered list of info, but before I run the macro I need to filter by a room number, which the room number will change every time I use this spread sheet. Is there any way that I can set a macro that will automatically cursor down on the filter list of rooms, rather than selecting a criteria name. I want it to pick the first one in the list, then inbetween each room it selects, another macro is called up.

    Thanks

    Graham

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Filter by unknown criteria problem

    Create a new Range variable based on the visible rows. Then run your macro on each cell in the range, effectively on the row...
    Please Login or Register  to view this content.


    You used the word "select" and "cursors down" which makes me think your making your macro act on the worksheet the same way you do, which is extremely inefficient. Post your full code and I'm sure we can help speed it up for you.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Filter by unknown criteria problem

    Hello Graham,

    My magic 8 ball says: "Reply Hazy"

    To receive a prompt answer, you should attach a copy of your workbook.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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