Results 1 to 1 of 1

Hid Columns based on ListBox Selection

Threaded View

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1

    Hid Columns based on ListBox Selection

    Hello,

    I am not sure if this has been answered before. I have been searching the forum and haven't found something that quite fits this situation. I can't help but wonder if there is an easy way to do this but have been hitting a brick wall. Mostly due to my limited knowledge of VB. I am familiar with programming basics, but do not know the syntax very well.

    I have a matrix that contains a header row, 20 rows, and columns A through CL. I want to have only the columns that apply to the selected rows appear (empty ones are hidden)

    My overall vision is this:

    1. user opens the file (or runs a macro afterward)
    2. a listbox appears showing the products listed in Column A
    3. user the selects the product(s) he/she is working with
    4. based on that selection, all other rows are hidden
    5. Once the rows are hidden, or whicever makes more programatic sense, cloumns that are empty for all remaining rows are hidden.

    Final Result:

    The user is left with only the columns that apply to the selected rows.

    I have attached my spreadsheet for reference.

    Any help is greatly appreciated, and I'm available to answer questions if the above items seem unclear.

    Upload Template Matrix-excelforum.xlsx
    Last edited by panteradrummer66; 06-14-2012 at 10:46 AM. Reason: Fix Attachment

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