+ Reply to Thread
Results 1 to 3 of 3

VBA Code to Gray Out Command Button on Userform

  1. #1
    Registered User
    Join Date
    07-29-2013
    Location
    Colorado
    MS-Off Ver
    Excel 2007
    Posts
    19

    VBA Code to Gray Out Command Button on Userform

    Hi Everyone,

    This is my first post, so hopefully I do this right. Is there a way gray out a command button until a selection is made in the listbox of the userform and then make it available to click once a selection is made?

    Thanks,

    Jeff

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA Code to Gray Out Command Button on Userform

    Perhaps.
    Please Login or Register  to view this content.
    You'll also need to change the Enabled property of the command button in design view or with code.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-29-2013
    Location
    Colorado
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: VBA Code to Gray Out Command Button on Userform

    Thanks Norie! This worked perfectly.

    Jeff

+ 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. [SOLVED] getting data from command button in userform why is my code not working?
    By Curious2 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 06-07-2013, 10:37 AM
  2. [SOLVED] Excel vba userform - code for command button not working
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2013, 11:27 AM
  3. Code a Command Button on UserForm not to close upon click - Excel VBA
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-14-2012, 02:20 PM
  4. Code for a master command button to change the backcolor of multiple command buttons?
    By panttherm5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2012, 10:11 PM
  5. Command button code to write to worksheet and then open userform
    By Reidm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2008, 10:33 AM

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