+ Reply to Thread
Results 1 to 4 of 4

Toggle Button to filter empty cells or cells with values

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    37

    Toggle Button to filter empty cells or cells with values

    Hello,

    I would like to use a toggle button to either show all empty cells in a range, or show all cells with values in the same range.

    Right now my code works well for hiding all empty cells, but I can't find a good way to make the "untoggle" part of the button make all the filled cells be removed. Any thoughts?

    Current Code:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Toggle Button to filter empty cells or cells with values

    Try this:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Toggle Button to filter empty cells or cells with values

    Works like a charm! Thank you for your help.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Toggle Button to filter empty cells or cells with values

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. You can also thank those who have helped you by clicking "Add Reputation" at the bottom left of their posts. Thanks.

+ 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] Use Toggle Button to filter
    By biznez1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2018, 06:16 AM
  2. [SOLVED] Change macro to filter Zero not Empty cells
    By Viktor86HUN in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-23-2014, 10:00 AM
  3. Replies: 1
    Last Post: 02-13-2014, 10:55 PM
  4. Using filter when the collumn contains empty cells
    By Bandini in forum Excel General
    Replies: 2
    Last Post: 04-25-2012, 09:13 AM
  5. [SOLVED] Toggle button to hide rows if empty and has no color
    By hi2chris in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-10-2012, 08:56 PM

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