+ Reply to Thread
Results 1 to 8 of 8

Hide rows based on muti cell drop down list

  1. #1
    Registered User
    Join Date
    04-06-2017
    Location
    Sydney
    MS-Off Ver
    Office 2013
    Posts
    12

    Hide rows based on muti cell drop down list

    Hi guys, need help urgently on this.

    Have Cell B39, which has Yes/No drop down option.
    If no, then I want to hide rows 40-66.
    If yes, then I want it to show row 40, hide rows 41-66.

    Then, Cell B40 has Yes/No drop down option.
    If no, then I want to hide rows 41-66.
    If yes, then I want it to show row 41, hide rows 42-66.

    Then, Cell B41 has 1,2,3,....,25 drop down options.
    If 1, then I want it to show row 42, hide rows 43-66.
    If 2, then I want it to show row 42 and 43, hide rows 44-66.
    If 3, then I want it to show row 42,43, and 44, hide rows 45-66.
    and so forth..

    Can someone please help me? I don't have experience with Macros/VBA.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hide rows based on muti cell drop down list

    Hello prat33,

    Welcome to the Forum with your first Post!

    Please could you be so kind as to attach a sample workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    419

    Re: Hide rows based on muti cell drop down list

    Try this (insert code in relevant Worksheet Module)
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-06-2017
    Location
    Sydney
    MS-Off Ver
    Office 2013
    Posts
    12

    Re: Hide rows based on muti cell drop down list

    Ok hopefully the attachment has come up..

    @mgs73, that didn't work.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    419

    Re: Hide rows based on muti cell drop down list

    I just tried it on your file, and it worked ok for me (see attached).
    Attached Files Attached Files
    Last edited by mgs73; 04-06-2017 at 07:22 PM.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hide rows based on muti cell drop down list

    Hi prat33,

    Thank you for your response, however your sample workbook contains no Code at all, and the Before and After Sheets shows nothing at all.

    Make sure there is just enough data to demonstrate your need.

    Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Thank you.

  7. #7
    Registered User
    Join Date
    04-06-2017
    Location
    Sydney
    MS-Off Ver
    Office 2013
    Posts
    12

    Re: Hide rows based on muti cell drop down list

    Hi, sorry because I don't know what codes to add, I do not have any experience with VBA etc. The code posted above didn't work too.

    Sorry as I mentioned in my initial post, what I am trying to achieve is:

    Have Cell B39, which has Yes/No drop down option.
    If no, then I want to hide rows 40-66.
    If yes, then I want it to show row 40, hide rows 41-66.

    Then, Cell B40 has Yes/No drop down option.
    If no, then I want to hide rows 41-66.
    If yes, then I want it to show row 41, hide rows 42-66.

    Then, Cell B41 has 1,2,3,....,25 drop down options.
    If 1, then I want it to show row 42, hide rows 43-66.
    If 2, then I want it to show row 42 and 43, hide rows 44-66.
    If 3, then I want it to show row 42,43, and 44, hide rows 45-66.
    and so forth..

  8. #8
    Registered User
    Join Date
    04-06-2017
    Location
    Sydney
    MS-Off Ver
    Office 2013
    Posts
    12

    Re: Hide rows based on muti cell drop down list

    @mgs73, just tried again and it worked! thank you soo much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hide-Unhide rows on multiple worksheets based on value of a drop down list
    By clo2peter in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-10-2014, 08:32 AM
  2. [SOLVED] Show/hide rows based on drop down cell using named ranges
    By Stu091074 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2014, 11:00 AM
  3. [SOLVED] hide or unhide rows based on text within a drop down list
    By souimet in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2013, 01:32 AM
  4. Hide Rows based on the value of a drop down menu in a single cell.
    By sayoban in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-25-2013, 04:36 PM
  5. [SOLVED] VBA code to hide/unlide rows based on drop down list
    By evakotsi in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-03-2012, 10:30 PM
  6. Hide Rows Based on List Value from Cell
    By ahill in forum Excel General
    Replies: 3
    Last Post: 06-15-2012, 12:25 PM
  7. [SOLVED] Macro Filter to hide rows based on Drop Down List
    By dieseldogpi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-12-2012, 11:19 AM
  8. Hide Rows based on Client Drop Down List
    By troyhalsey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2012, 07:28 AM

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