1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Excel on off command button

Discussion in 'Business Applications' started by danleik, Nov 11, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. danleik

    danleik Thread Starter

    Joined:
    Nov 11, 2007
    Messages:
    1
    Mr. Tech Guy,
    In Excel 2007, I want to place a command button in a cell that, when clicked, unhides subset cells. Easy enough. But how do I get it to rehide those cells when I click on the button again. And, of course unhide next time and so on. An on-off switch as it were.

    VBA is Greek to me; I create macros by entering commands on keyboard.

    Much obliged for any help.

    Dan L :confused:
     
  2. slurpee55

    slurpee55

    Joined:
    Oct 20, 2004
    Messages:
    7,837
    I'm not much of a VBA person myself - I sure it is possible (probably reset a state each time it is clicked) but you could use radio buttons instead - one for unhide and one for hide.
     
  3. Aj_old

    Aj_old

    Joined:
    Sep 24, 2007
    Messages:
    869
    The Option of Group and Outline isn't good enough?
     
  4. Zack Barresse

    Zack Barresse

    Joined:
    Jul 25, 2004
    Messages:
    5,452
    I would double Aj-old's recommendation. Also, have a look at AutoFilter as well.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/650767

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice