+ Reply to Thread
Results 1 to 3 of 3

Filtering with VBA Not Quite Working

  1. #1
    Registered User
    Join Date
    02-28-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    23

    Filtering with VBA Not Quite Working

    Hoping someone can help.

    I have applied a filter to a value list (Cell C3) using VBA.
    This works in fine in that when I select a value from the list i.e. 'Roofs' the data below filters accordingly.

    However, when I select a value from the value list (Cell D3) it resets / removes the filter and I don't understand why as there is no VBA associated with this.

    Strangely, if you select the value from D3 first, then C3 it works fine also.

    Basically I just want the filter to work with what is selected from Cell C3 and not be affected when I select from D3.

    Please see attached.

    Cheers Steve
    Attached Files Attached Files
    Last edited by Stephen Troughton; 10-03-2018 at 11:52 AM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Filtering with VBA Not Quite Working

    Your first instruction is to show all data. I'd suggest you check to see if it was C3 that changed before you do anything else. For example:

    Please Login or Register  to view this content.
    Rory

  3. #3
    Registered User
    Join Date
    02-28-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    23

    Re: Filtering with VBA Not Quite Working

    Thanks Rorya, now all working.

+ 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] VBA filtering working unless February?
    By Margate in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2018, 12:03 PM
  2. Advanced filtering - wildcards not working.
    By bluphoto in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2014, 11:46 AM
  3. Manual filtering function isn't working
    By esec12 in forum Excel General
    Replies: 12
    Last Post: 08-14-2014, 06:37 PM
  4. [SOLVED] Filtering by Dates not working correctly
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2014, 02:08 AM
  5. run-time error '1004' - advanced filtering not working
    By scubadiver007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2013, 05:49 PM
  6. Date Filter is not working, beside filtering data also needs some help.
    By sanc.jobs2012 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2012, 05:51 AM
  7. Search filtering macro stopped working
    By James_B in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2010, 11:04 AM

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