+ Reply to Thread
Results 1 to 5 of 5

Make a Shape behave like a Toggle Button

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Make a Shape behave like a Toggle Button

    Is there any way to programatically or otherwise, get a 'Shape' (Insert>Shape) to behave like an Active-X toggle button?

    I want to run Excel in 'Full Screen' mode, i.e. without the ribbon, formula bar, outline, headings, status bar etc. I still want to be able to hide and unhide groups on the page, but I want to do this using a Shape, rather than a standard, Active X 'Toggle Button', so when clicked, the shape changes from Green with a '+' sign in it, to Red, with a minus sign in it, whilst simultaneously grouping and ungrouping a specified range of rows or columns.

    Is there any way to achieve this?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Make a Shape behave like a Toggle Button

    Start by recording a macro to format the shape
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Make a Shape behave like a Toggle Button

    Hi royUK,

    I tried recording a macro, but that doesn't really seem to work. What I need is to be able to adapt this 'toggle buton' code for a 'shape'. instead on an Active X toggle button, but I'm not sure how to do that?

    Please Login or Register  to view this content.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Make a Shape behave like a Toggle Button

    Here's some code that might help. The shape is named ToggleShape

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Make a Shape behave like a Toggle Button

    RoyUK,

    Perfect, all working now...

    Many thanks

+ 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