+ Reply to Thread
Results 1 to 7 of 7

How to create a macro that 'activates' a filter on another sheet.

  1. #1
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    How to create a macro that 'activates' a filter on another sheet.

    I want to create a macro that somehow lets me use a filter on another worksheet. I think an ideal method would be to have a button which activates the filter in a macro but i am not sure how i'd go about this.

    Evidence 1.png
    Evidence 2.png

    Thanks,
    Liam

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,951

    Re: How to create a macro that 'activates' a filter on another sheet.

    What do you mean by "activates"?
    Will there be set criteria for the filter and the button is simply switching this filter on/off?

    BSB

  3. #3
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Smile Re: How to create a macro that 'activates' a filter on another sheet.

    I knew i explained that awfully...
    Anyways basically when the button is pressed, i'd like a text box or something like that to pop-up in which you can enter the data you want the filter to change to, on the other worksheet.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,951

    Re: How to create a macro that 'activates' a filter on another sheet.

    How many columns are you looking at for this and are there set options for each or would you need that to be dynamic?

    BSB

  5. #5
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Re: How to create a macro that 'activates' a filter on another sheet.

    It should only effect one filter on my original worksheet, so just the 1 column (A:A), and can you explain what you mean by dynamic?


  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,951

    Re: How to create a macro that 'activates' a filter on another sheet.

    OK, will there be a set of possible filters such as A, B, C or D, or would this list need to be depended on what values are in column A at any given time, i.e. one day there could be an F or Z or a 1?

    Would you need to be able to filter to more than one of the possible values at a time or would it only ever be one of them?

    What I'm hinting at with that is, if you need to have full filtering functionality with multiple options and operators then you may be making things more complicated for yourself than you need.
    What's the reason for wanting to filter from another sheet and not from the actual sheet?

    BSB

  7. #7
    Registered User
    Join Date
    04-29-2016
    Location
    Portugal
    MS-Off Ver
    2007
    Posts
    43

    Re: How to create a macro that 'activates' a filter on another sheet.

    I know it's late but for the record:
    Please Login or Register  to view this content.

+ 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. [SOLVED] Macro activates in wrong sheet
    By SoothSailor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2015, 12:17 PM
  2. Navivgation bar that activates selected sheet, then clears contents of the bar
    By jkindustries in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-24-2015, 08:53 AM
  3. Automatic updating of cells when sheet activates
    By popperm1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 12:54 PM
  4. Button who activates a macro
    By RoMarius1981 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2012, 07:27 AM
  5. Create macro upon double click cell display filter in new sheet
    By kamalhilmi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-14-2012, 07:40 AM
  6. Create a macro (module?) that activates in my userform code?
    By Bafa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2008, 09:15 PM
  7. Need macro to filter, create tab on filter and copy/paste
    By Jen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2006, 11:50 AM

Tags for this Thread

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