+ Reply to Thread
Results 1 to 4 of 4

Filter and no filter VBA- Auto Populate

  1. #1
    Registered User
    Join Date
    09-23-2018
    Location
    USA
    MS-Off Ver
    2017
    Posts
    26

    Filter and no filter VBA- Auto Populate

    Hello,

    So let's say I have 5 columns: ID, Class, Location, Segment and the last one Response(Yes/No)

    I already wrote a code that if I don't filter anything, whatever value I choose will apply to only one row. If I filtered, the values will be the same and populated same within the filtered groups. My question is, I want to make ID as an exception. So for example, if I filter ID just by itself, I want the result as of no filter at all (NO propagation, which ever value I choose will apply only to one row), but if I filter ID + Class/Location/Segment, it will be considered as filtered groups and of course my current VBA code will take care of that.

    Thanks so much for helping

    I've attached my code which is for the specific situation and also the excel workbook as an example. Appreciate all the help. Thanks so much!

    Best,

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Filter and no filter VBA- Auto Populate

    Your code doesn't work with the example workbook.

    Here is a function that will test if Only the ID column (the 1st column in the filter range) is filtered. I'll leave it to you to integrate it with your existing code.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-23-2018
    Location
    USA
    MS-Off Ver
    2017
    Posts
    26

    Re: Filter and no filter VBA- Auto Populate

    Awesome that works perfectly. Thank you!!!!

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Filter and no filter VBA- Auto Populate

    You're welcome. Thanks for the feedback.

+ 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. VBA - Auto Filter and make new sheets based on the filter values- Loop
    By Paul Cherian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2017, 06:41 AM
  2. Replies: 5
    Last Post: 11-24-2014, 11:58 AM
  3. [SOLVED] Auto Populate cell based on auto filter selection from table in same sheet
    By missydanni in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2013, 05:03 PM
  4. Delete Rows hidden by either Auto Filter and Advanced Filter
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:29 AM
  5. Combobox - Filter auto-filter worksheets (ActiveX)
    By Darms in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2011, 11:33 AM
  6. Auto Filter by InputBox - filter by user defined column
    By Originalgoth in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2010, 12:12 AM
  7. Replies: 1
    Last Post: 09-29-2005, 04:05 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