+ Reply to Thread
Results 1 to 3 of 3

Using macros or code to unhide columns.

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    Alaska, USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Post Using macros or code to unhide columns.

    I have a spreadsheet that features drop down menus and multiple columns in order to log services provided by a grant-funded program. The intention is the publish this document and distribute to staff. In order to streamline the document, the desire is to hide all columns until required for data entry. For example, when logging a new service, you will begin to select options from drop-down menus. By selecting our "WIA" grant for example, in one cell, I wish to automatically unhide the column where those grant-specific service categories are listed. Then, upon selecting the category from the newly-revealed column of drop-down menus, I wish to automatically unhide the specific services. I have a bank of reference values for my drop-down menus hidden off to the side. For example: By selecting "WIA" in column P, I want column R unhidden. By selecting "CAREER GUIDE" in column R, I want column T unhidden, etc. There are more situations, so a general code in which I can insert my own column and value selections would be appreciated. Thanks.

    I am using Excel 2010 on Windows 7 Professional.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Using macros or code to unhide columns.

    hi steven.leitheiser

    Welcome to the forum


    you can use the "Worksheet_Change" event in the worksheet module

    not knowing your exact layout you can adapt....

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Using macros or code to unhide columns.

    I would suggest that using CustomViews might be a solution. I've posted examples if you search the Forum
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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