+ Reply to Thread
Results 1 to 5 of 5

Hide then show specific column

  1. #1
    Registered User
    Join Date
    02-12-2010
    Location
    scotland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Hide then show specific column

    I have a workbook with columns A:ET each with a title at the top, I want to create a new workbook like an index where I can hide all the data then select only specific individual columns that I need to work on. I can kind of get it to work but it means creating buttons against each heading and another button to hide all.....is there a better way to do this particularly with tick boxes?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Hide then show specific column

    Yes, there's ways to do just about anything.

    Click GO ADVANCED and use the paperclip icon to post up your workbook. Make sure it's clear where you want assistance in the workbook.
    Last edited by JBeaucaire; 02-12-2010 at 12:33 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-12-2010
    Location
    scotland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Hide then show specific column

    I cant post the original document but have recreated an idea of what I have done, first I have used a macro to hide all columns from the range A:ET. Then I hit the button of the individual colums I want to view. What would look better is if it was a column of tick boxes. I understand in the properties there is a value of checked or unchecked but Im not a VB guru so dont know what is the best option to scan the colum of ticks and only select the checked ones!
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Hide then show specific column

    you need so save that as xlsm or xls for the macros to show
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Hide then show specific column

    Maybe use a spinbutton to selectively unhide some columns (one at a time), see attachment.
    Attached Files Attached Files

+ 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