+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Hiding/unhiding cells with option buttons

  1. #1
    Registered User
    Join Date
    06-11-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2007
    Posts
    6

    Hiding/unhiding cells with option buttons

    Is there a way to use option buttons to easily hide and unhide a group of cells?

  2. #2
    Registered User
    Join Date
    05-28-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    4

    Re: Hiding/unhiding cells with option buttons

    Hi Eclind

    Definitely! Just record 2 sets of macro to hide and unhide the cells you want, then assign the macros to the 2 different option buttons.


    scwi :D

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Hiding/unhiding cells with option buttons

    Example code for using two option buttons (op1 and op2) on a worksheet (one to hide rows 1:4, the other to unhide them):
    Please Login or Register  to view this content.
    It might make more sense to use a checkbox instead, rather than two option buttons. You could then have the code determine if the checkbox is checked or not, and hide/unhide the rows accordingly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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