+ Reply to Thread
Results 1 to 10 of 10

Trying to convert a horizontal filter from hiding columns that contain to hiding all other

  1. #1
    Registered User
    Join Date
    07-18-2012
    Location
    Houston, USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Trying to convert a horizontal filter from hiding columns that contain to hiding all other

    Hi
    I have this macro that enables me to hide the colums that contain the value in cell B3 in row 3
    But what I need is for it to do the opposite, to hide all columns that do NOT contain the value in cell B3

    Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: Trying to convert a horizontal filter from hiding columns that contain to hiding all o

    Change the ">= 1" on the 4th line to "= 0"

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-18-2012
    Location
    Houston, USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Trying to convert a horizontal filter from hiding columns that contain to hiding all o

    Thanks,
    that worked perfect
    Now I'm running into another issue, the filter is keeping cells that contain what I put in the reference cell, I wan't it to keep only the columns that contain EXACTLY what is written in the reference cell

    I appreciate the help

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: Trying to convert a horizontal filter from hiding columns that contain to hiding all o

    Well, you'll probably need to change that 4th line to this:

    Please Login or Register  to view this content.
    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    07-18-2012
    Location
    Houston, USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Trying to convert a horizontal filter from hiding columns that contain to hiding all o

    Hey thanks for the help but that didn't work, now it filters everything out

    Please Login or Register  to view this content.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: Trying to convert a horizontal filter from hiding columns that contain to hiding all o

    Well, the values are not exactly the same then, so it is doing what you asked for.

    Pete

  7. #7
    Registered User
    Join Date
    07-18-2012
    Location
    Houston, USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Trying to convert a horizontal filter from hiding columns that contain to hiding all o

    Well no, it's not even keeping what is in the reference cell B3, even when typed exactly the same

    Thanks for the help

  8. #8
    Registered User
    Join Date
    09-19-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Trying to convert a horizontal filter from hiding columns that contain to hiding all o

    Mr. Pete,

    I sent you PM about horizontal filtering I obtained from another website. Please PM back with your email so I can send you my file. I hope you can help me thanks so much.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: Trying to convert a horizontal filter from hiding columns that contain to hiding all o

    @dusk

    You should not post your own question in another member's thread - read the Forum Rules. Instead, you should start your own thread. Besides, I'm going on holiday tomorrow, so I won't be able to help you.

    Pete

  10. #10
    Registered User
    Join Date
    09-19-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Trying to convert a horizontal filter from hiding columns that contain to hiding all o

    Ok thank you for not helping u take care (-;

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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