+ Reply to Thread
Results 1 to 4 of 4

Hide and Unhide Rows by clicking a cell.

  1. #1
    Registered User
    Join Date
    07-13-2015
    Location
    sydney
    MS-Off Ver
    windows 7
    Posts
    8

    Thumbs up Hide and Unhide Rows by clicking a cell.

    hi there,
    Iam still new to VBA and would like some help . Thanks you to all for spending time on this.

    I have a spreadsheet with about 10 headers which are lined one below the other.

    What i woudl like to do is to click any of the Headers and get 2 to 5 Sub Products below it

    I have attached a work sheet with headers being

    XLContributor
    WebContributor
    Direct GEO
    Under XLContributor i would like Origial and YTD Actual and Forcast.

    But i want this to hide and unhide each time i click XL Contributor.

    and so forth for WebContributor and Direct GEO.


    Thanks you all
    Joel
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Hide and Unhide Rows by clicking a cell.

    Hi,
    Welcome to the forum.

    Try this to see if this works for you.
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    07-13-2015
    Location
    sydney
    MS-Off Ver
    windows 7
    Posts
    8

    Re: Hide and Unhide Rows by clicking a cell.

    hi Sktneer,
    Thanks for your prompt reply. i have embedded it into my worksheet and it works fine except for the click on Cell C8 which hides and Unhides the two rows below it - but it also UNHIDES all the below rows from 15 -61.

    all the other cells C14 , C19 C129 C39 C48 C55 work fine. ( Ie they Unhide and Hide ONLY their respective rows and columns. I have tried to play around but was unsuccesful.
    Attached Files Attached Files

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Hide and Unhide Rows by clicking a cell.

    Insert one more blank line before each header and this should work fine. I have changed the code accordingly.
    Attached Files Attached Files

+ 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. Need Toggle Button to hide/unhide rows based on cell value in non concurrent rows
    By The Phoenix in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-13-2015, 10:49 AM
  2. [SOLVED] Hide/Unhide Rows when clicking between two tabs in Workbook
    By jdesro04 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2014, 09:23 PM
  3. [SOLVED] First unhide all rows - then hide rows based on specific cell value for a range of cells
    By robbiekh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-22-2013, 05:46 PM
  4. Hide / Unhide rows where all cell values are ZERO
    By kaseyleigh in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-19-2013, 11:16 AM
  5. Hide/Unhide rows based on Cell Value
    By noelwri in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2012, 04:25 PM
  6. [SOLVED] Using Value in Cell to hide/unhide rows
    By maayub15 in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 03-15-2012, 02:23 AM
  7. hide/unhide rows based on cell value
    By alexandruc in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-12-2009, 06:49 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