+ Reply to Thread
Results 1 to 5 of 5

How to create a scalable method to hide and unhide columns

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    How to create a scalable method to hide and unhide columns

    Hello,

    This is my first post to this forum, so thank you in advance to all the experts here. I have a prototype that hides and unhides columns in my spreadsheet based on inputs. However, I expect the combinations to grow thus requiring me to develop a more scalable solution than the one I have below. Any assistance is greatly appreciated. My current code is listed below.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: How to create a scalable method to hide and unhide columns

    Hi

    1) How would you determine the outermost column to include in the range? At the moment, you have column O, but if you have other options, would you have more columns?
    2) What determines which column is to be unhidden? Is there something in the column that relates to the 2 inputs so that it can be determined from those inputs?

    rylo

  3. #3
    Registered User
    Join Date
    11-28-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to create a scalable method to hide and unhide columns

    Hello Rylo,

    Thank you for the reply.

    1) Yes, I would have more columns, and they will be fixed, to correspond the input. There could be many columns At least that the current model unless there is a better way to manage.

    2) The determining factor of which column is to be unhidden is the combination of two inputs which I then manually correspond to the appropriate column header, thus determining the Excel column ID. Currently there is no intelligence built into the column header naming vs the inputs. If there is a method to handle the VBA code to link the inputs to column title, then maybe that would help.

    Thank you for your assistance,

    Domenico

    Quote Originally Posted by rylo View Post
    Hi

    1) How would you determine the outermost column to include in the range? At the moment, you have column O, but if you have other options, would you have more columns?
    2) What determines which column is to be unhidden? Is there something in the column that relates to the 2 inputs so that it can be determined from those inputs?

    rylo

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: How to create a scalable method to hide and unhide columns

    Hi

    Can you generate an example file for this with realistic, but not sensitive data?

    rylo

  5. #5
    Registered User
    Join Date
    11-28-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to create a scalable method to hide and unhide columns

    Hi,

    I have attached a sample called sample.xls.

    Thank you,

    Domenico
    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