Results 1 to 5 of 5

Thread: Auto Hide Blank Cells
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Mar 2019
    Posts
    63
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Auto Hide Blank Cells

    I currently have 3 different tables on one sheet.

    a table that lists the standings of sale execs at a certain site.
    another that has the standings of all the sites
    a final one that has the standings of all sale execs

    as the all sale exec table is bigger than the rest i have an auto filter code in the VBA (the standings change from 93, 73 and 59 depending on what scheme has been selected)

    i would like to put a similar filter on the sale execs by site table. however i cant do this because when it hides the blank lines it hides the whole row. meaning it hides some of the sites from the site table and some of the sale execs from the whole sale exec table.

    does anyone know a bit of vba code or anything that will allow me to select the range of the sale exec table (B10:F24) and then automatically hide any empty cells every time the criteria is changed.

    so for example at the min i have it showing people at Derby and it lists 9 people with 6 empty cells under it. if i change the site to burton there are 13 staff listed and 2 empty cells at the bottom.

    id like something that will hide the empty cells at the bottom when i change site, but wont affect the other two tables

  2. #2
    Board Regular
    Join Date
    Mar 2019
    Posts
    63
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Auto Hide Blank Cells

    anyone help with this?

  3. #3
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,177
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Auto Hide Blank Cells

    You can only hide entire rows/columns, not partial ranges.
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  4. #4
    Board Regular
    Join Date
    Mar 2019
    Posts
    63
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Auto Hide Blank Cells

    ok, any idea how i can add some sort of conditional format to the cells then? so if they are blank then they have no border or background colour etc

  5. #5
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,177
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Auto Hide Blank Cells

    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •