+ Reply to Thread
Results 1 to 6 of 6

Drop Down List value to Hide Rows

Hybrid View

rabbit8 Drop Down List value to Hide... 07-13-2010, 11:22 AM
Marcol Re: Drop Down List value to... 07-13-2010, 12:02 PM
rabbit8 Re: Drop Down List value to... 07-13-2010, 01:33 PM
ek2112 Re: Drop Down List value to... 01-11-2012, 03:22 PM
koteshi Re: Drop Down List value to... 04-14-2014, 05:49 AM
arlu1201 Re: Drop Down List value to... 04-15-2014, 01:00 AM
  1. #1
    Registered User
    Join Date
    07-13-2010
    Location
    Pawtucket, RI
    MS-Off Ver
    Excel 2003
    Posts
    2

    Drop Down List value to Hide Rows

    I've created a drop down list with two options( Single Wall and Double Wall), which I want to hide rows depending on the users selection.

    When Single Wall is selected I want to hide rows 10 through 16.
    When Double Wall is selected I want to hide rows 18 through 19.

    Is there a simple solution to my question? I'm using excel 2003. Attaching the booklet.

    Thanks!
    Attached Files Attached Files
    Last edited by rabbit8; 07-13-2010 at 12:57 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Drop Down List value to Hide Rows

    Try this in the worksheet module for sheet "RECYCLED CONTENT CALCULATOR"
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Address = "$A$4" Then
            Range("A10:A19").EntireRow.Hidden = False
            If Target = "Double Wall" Then
                Range("A17:A19").EntireRow.Hidden = True
            ElseIf Target = "Single Wall" Then
                Range("A10:A17").EntireRow.Hidden = True
            End If
        End If
    End Sub
    Demoworkbook attached

    Hope this helps
    Attached Files Attached Files
    Last edited by Marcol; 07-13-2010 at 12:07 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    07-13-2010
    Location
    Pawtucket, RI
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Drop Down List value to Hide Rows

    This works perfect. Thank you for the help.

  4. #4
    Registered User
    Join Date
    01-11-2012
    Location
    CA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Talking Re: Drop Down List value to Hide Rows

    Quote Originally Posted by rabbit8 View Post
    This works perfect. Thank you for the help.
    I tried today and it works fine.

  5. #5
    Registered User
    Join Date
    08-25-2011
    Location
    Taipei, Taiwan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Drop Down List value to Hide Rows

    I hope nobody minds I am reviving a dead thread but I am facing currently a similar problem:

    I have an Excel 2007 sheet with a drop down list which looks like this.

    \1
    2014-04-14_172511.png

    My plan is now that whenever someone picks the values CP320, CP320s or CP320n from the drop down list (marked yellow), the rows 12-14 (marked blue) will be automatically hidden. If the values CP321, CP321s or CP321n are selected the rows reappear.

    I am pretty sure this can be done with a nice VB macro, however unfortunately I lack the skills to do it by myself. I've tried other approaches, like the one mentioned in this thread, but they all failed.

    Anyone willing to help me on this one?
    Attached Files Attached Files

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Drop Down List value to Hide Rows

    koteshi,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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