+ Reply to Thread
Results 1 to 2 of 2

macro to unhide row when a dropdown list item is selected

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    Waterloo, Canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    macro to unhide row when a dropdown list item is selected

    Hi,

    I have this spreadsheet (attached). Originally, the spreadsheet only had the states that were highlighted in blue. I wanted a macro such that a user could chose what state to add from a dropdown list. I was thinking of putting the remaining states on the sheet (those that weren't highlighted in blue) and whenever the user select a state, that row will be unhide. But it would be a lot of If statements if I do it that way, so I'm hoping if anyone have any other ideas or know how to do this without putting tons of If statements.

    There are more columns to the right of the Total column that have formulas in them to calculate % and such when the user input numbers in the 2nd - 4th columns

    Any help would be greatly appreciated!

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: macro to unhide row when a dropdown list item is selected

    Hi, ahng,

    Originally, the spreadsheet only had the states that were highlighted in blue. I wanted a macro such that a user could chose what state to add from a dropdown list. I was thinking of putting the remaining states on the sheet (those that weren't highlighted in blue) and whenever the user select a state, that row will be unhide.
    Canīt find any states being highlighted in blue in that workbook (nor can a .xlsx workbook save any macro code you have worked on before).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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