+ Reply to Thread
Results 1 to 3 of 3

Checkbox To Enables or Disables a Button in Userform

  1. #1
    Registered User
    Join Date
    02-02-2010
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    47

    Checkbox To Enables or Disables a Button in Userform

    Hi,

    I made this userform but I need help to finish it.

    There are 4 check boxes and 4 buttons, Each check box has its button.
    when box 1 is clicked I need button 1 to be disabled. Same for 2 and 3.
    and when box 4(9 in attachment) is clicked the button 4(9) must be enabled(activated). just like when you install a software where they ask if you agree with the therms and so.

    thx
    Attached Files Attached Files
    Last edited by Bluewhistler; 02-22-2010 at 08:55 AM.

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Checkbox To Enables or Disables a Button in Userform

    Try the attached. I've added code to the click events of Box1 and Box9 as well as to the buttons for each box

    I moved the opening of the form from the Open event to the BeforeClose event.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-02-2010
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Checkbox To Enables or Disables a Button in Userform

    Thx for the help.
    I managed to finish the rest and tested it out and attached it here.
    All works fine except 1 button can't perform the command its assigned to because of the code in this workbook:

    Please Login or Register  to view this content.
    So I got a commandbutton1 in the Confirm1 Userform that is assigned with:
    Please Login or Register  to view this content.
    When I push this button the workbook closes because its still in the 'Private Sub Workbook_BeforeClose' code.

    Is there a way to cancel that code? Something like this?
    Please Login or Register  to view this content.
    Thx
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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