+ Reply to Thread
Results 1 to 2 of 2

IF statement for show / hide detail

  1. #1
    Forum Contributor
    Join Date
    08-23-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    139

    IF statement for show / hide detail

    Hello All, this forum is always so helpful so I'm putting this problem out there to see what comes back

    I'm wanting to put a simple button on my sheet that the user clicks to show or hide a group of rows (the "show/hide detail" options).

    So far my code goes:

    Please Login or Register  to view this content.
    So two questions, can this unfinished code be finished to accomplish what I need, or perhaps a better way? The other question is, can I remove the bar down the left hand side of the screen that shows the groupings?

    I know that there is the bar that would do this just fine, and there are also the show and hide detail buttons on the ribbon but my users have reported that these things are apparently too complicated and would like a button on the worksheet! I'd welcome other ways to solve this problem (other than "get new users" lol)

    Looking forward to seeing what is suggested, thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    08-23-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: IF statement for show / hide detail

    Hello everyone, I'm marking this as [solved] but really, I have just had time to think about it and come up with a different way.

    The problem I could foresee was that eventually, I would be protecting the sheet so that formulas would be preserved, and when protected the group show/hide detail options wouldn't have worked. My code for a simple button would have become longer and longer to solve a problem that is easily handled by the ribbon buttons for showing and hiding a group of cells.

    I have had to find some way of showing/hiding cells on another part of the sheet, my code is pasted below. It is very similar to what I wanted for this thread - a button to hide/show certain rows. The macro, when assigned to a button on the sheet will look to see if row 29 is hidden, and either hide it or show it depending on what it finds. Since it simply hides the cells, there is no trouble when a sheet is protected.

    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 08-26-2013, 05:19 PM
  2. Hide Detail / Show Detail In Macro
    By IveGotNoSocksOn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 06:58 AM
  3. Replies: 0
    Last Post: 06-02-2009, 12:29 AM
  4. Replies: 2
    Last Post: 11-04-2007, 01:07 AM
  5. Macro to show/hide detail in an outline
    By NathanPage in forum Excel General
    Replies: 1
    Last Post: 12-08-2005, 11:15 AM

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