+ Reply to Thread
Results 1 to 3 of 3

How can I Hide/Unhide grouped objects using a button

  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    11

    How can I Hide/Unhide grouped objects using a button

    Hi, I'm new to the macro world. I'm trying to hide certain grouped objects in a sheet when using another object as a button and clicking it with my mouse.

    My button has the following command to hide some columns:


    -------

    Sub Hide_Column()

    Columns("B:L").Hidden = Not Columns("B:L").Hidden

    End Sub

    -------



    What I want to accomplish is that when I press that object I wanted to hide/unhide the columns as shown in the command above but also hide/unhide a set of grouped objects I named "Group 1".

    Thank you for your advise in advance,
    Dude

  2. #2
    Forum Contributor
    Join Date
    03-28-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    166

    Re: How can I Hide/Unhide grouped objects using a button

    Yo Dude,

    Try something similar to this;

    Please Login or Register  to view this content.
    LeapingLizard

  3. #3
    Registered User
    Join Date
    01-04-2013
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How can I Hide/Unhide grouped objects using a button

    Thank you! It works.

+ 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. Button to Hide/Unhide rows
    By bullandbear in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-19-2013, 04:10 PM
  2. Down and up button to unhide or hide rows
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2013, 08:55 PM
  3. Hide or unhide charts or objects
    By Karak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2012, 09:23 AM
  4. Button to Hide/Unhide a Worksheet
    By jason_kelly in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-20-2010, 02:36 PM
  5. [SOLVED] hide or unhide rows with button
    By Bea in forum Excel General
    Replies: 11
    Last Post: 11-30-2005, 12:10 PM

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