Results 1 to 2 of 2

Thread: VBA code to hide filtered columns (simple table 5 rows / 6 columns wide)

  1. #1

    VBA code to hide filtered columns (simple table 5 rows / 6 columns wide)



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi,

    I have a simple table in Excel 2010 (5 rows / 6 columns).
    I would like the user to be able to filter the table.
    After the filter, I would like to hide any columns that only contain (visible) 'N' characters.

    I would like to do this in VBA.

    Any help much appreciated.
    Thank you
    Attached Files Attached Files
    Last edited by xx3774; 2014-11-11 at 06:55 PM. Reason: attachment not showing

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,267
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Before anyone replies to this, check the cross posts for solutions:

    http://www.mrexcel.com/forum/excel-q...umns-wide.html
    http://www.excelforum.com/excel-prog...umns-wide.html
    http://forum.chandoo.org/threads/vba...ns-wide.20238/

    xx3774, welcome to the forum, but please have a read of this article.
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Posting Permissions

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