+ Reply to Thread
Results 1 to 4 of 4

Deactivate or "grey-out" commandbutton

  1. #1
    Registered User
    Join Date
    05-12-2009
    Location
    Udevalla, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    85

    Deactivate or "grey-out" commandbutton

    Hi.

    I was wondering if there is any way to "grey-out" a commandbutton?
    I made it using the forms toolbar.
    Last edited by Carlsbergen; 09-09-2009 at 03:01 AM.

  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: Deactivate or "grey-out" commandbutton

    An ActiveX button from the Controls Toolbox would be better suited, you can use it's Enabled property
    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 Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Deactivate or "grey-out" commandbutton

    You can disable the Form control using

    Please Login or Register  to view this content.
    But it's appearance will not change. For that you need to use the Activex controls.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    05-12-2009
    Location
    Udevalla, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Deactivate or "grey-out" commandbutton

    Thanks! Ill have to change them to ActiveX buttons then.

    EDIT: For anyone interested. If in Design mode, you can set enabled to True or False
    if you right-click on the button and go to Properties, Categorized, Misc.
    When set to False, the button will grey out and not work.
    Last edited by Carlsbergen; 09-09-2009 at 03:41 AM.

+ 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