+ Reply to Thread
Results 1 to 3 of 3

Code to hide and unhide columns when multiple autofilters applied

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Saskatchewan
    MS-Off Ver
    Excel 2003
    Posts
    6

    Code to hide and unhide columns when multiple autofilters applied

    I need to edit the following to allow a user to pick from multiple columns, not just column A and still have it hide and unhide blank columns. Example: User filters column A, this code works perfrectly, but I need the code to work if a users filters column A or D or J as an example.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Code to hide and unhide columns when multiple autofilters applied

    Perhaps if you lose the one?

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,297

    Re: Code to hide and unhide columns when multiple autofilters applied

    I think you'd need to loop through the filtered columns.

    Something like:

    Please Login or Register  to view this content.

    but where you go from there ...


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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