+ Reply to Thread
Results 1 to 7 of 7

VBA to hide rows does not work with DropDown

  1. #1
    Registered User
    Join Date
    08-18-2014
    Location
    DUBLIN
    MS-Off Ver
    2007
    Posts
    3

    Question VBA to hide rows does not work with DropDown

    Goal: Hide rows based on value in Drop Down Box

    Problem: The code works fine if i manually change the $D$10. If I make changes to the Drop Down Box the cell link updates, but the rows are not hidden.
    Can anybody help?

    Code:

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA to hide rows does not work with DropDown

    Try an Active x combo, and then use the change of that.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    08-18-2014
    Location
    DUBLIN
    MS-Off Ver
    2007
    Posts
    3

    Re: VBA to hide rows does not work with DropDown

    Thanks for the recommendation - but it doesn't work either. Same problem.

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA to hide rows does not work with DropDown

    Are you sure, you've put the code in Combo1_Change() for example?

  5. #5
    Registered User
    Join Date
    03-13-2010
    Location
    Mumbai, India
    MS-Off Ver
    2007 & 2013
    Posts
    28

    Re: VBA to hide rows does not work with DropDown

    Hi Steve1104,

    Check the attached file & the macro's in it.
    Hope this works for you.

    Regards,
    xlman
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-18-2014
    Location
    DUBLIN
    MS-Off Ver
    2007
    Posts
    3

    Re: VBA to hide rows does not work with DropDown


    Thanks for the help. In xlmans XLS-File I saw, that his drop down looked different. I was using a "Combo Box (Form Control)" - and obviously was not able to use it correctly. Now I switched to a Drop-Down (Data--> Data validation) and it works fine.
    The Active-X combo also didn't work - even though I think I put the code on the right place - but I assume the problem sits in front of the screen and there would be an easy solution to that.

  7. #7
    Registered User
    Join Date
    03-13-2010
    Location
    Mumbai, India
    MS-Off Ver
    2007 & 2013
    Posts
    28
    Good that your problem is solved.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    Quick method:
    Select Thread Tools-> Mark thread as Solved.

    You may also thank all those helped you, by clicking on the little star at the bottom left.

+ 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 dropdown selection VBA
    By Alina Loredana in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-11-2014, 07:45 AM
  2. Hide/Unhide rows Based on Value from Dropdown Lists
    By 2Deep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2010, 09:43 PM
  3. Dropdown to hide/show rows
    By paxile2k in forum Excel General
    Replies: 8
    Last Post: 01-07-2010, 01:27 PM
  4. Hide Rows based on dropdown selection...
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2008, 04:09 PM
  5. Replies: 2
    Last Post: 07-11-2006, 11:15 PM

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