+ Reply to Thread
Results 1 to 6 of 6

Hide all columns except those with certain headers/titles

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Hide all columns except those with certain headers/titles

    How would I make a macro to hide all columns except those with values "my column name 1, my column name 2, etc"?
    Last edited by ks100; 03-31-2014 at 08:31 AM.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Hide all columns except those with certain headers/titles

    So hide them if the column header is blank?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: Hide all columns except those with certain headers/titles

    Hide them if the column header is blank, or contains any value other than one of the following: (name1,name2,name3,etc)

    They aren't actually called name1,name2, I just need a template script I can use for all future projects needing this feature.

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Hide all columns except those with certain headers/titles

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: Hide all columns except those with certain headers/titles

    Quote Originally Posted by Solus Rankin View Post
    Please Login or Register  to view this content.
    Working thanks!

  6. #6
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Hide all columns except those with certain headers/titles

    Glad to help.

    If you are happy with the solution please mark the thread as [SOLVED] using the thread tools at the top.

    And on any thread you can show appreciation to those who have helped you by clicking the * below their post.

+ 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] Hide columns based on dynamic headers
    By pdalal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2013, 03:21 AM
  2. Replies: 3
    Last Post: 06-05-2012, 01:45 PM
  3. Hide Row Column Headers
    By Greg1234 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2007, 01:55 AM
  4. Show/Hide Column and Row Headers
    By graz in forum Excel General
    Replies: 2
    Last Post: 09-28-2005, 08:37 PM
  5. Possible to hide column headers???
    By T-Žex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-02-2005, 08:37 PM

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