+ Reply to Thread
Results 1 to 8 of 8

Checkbox with multiple functions

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    5

    Checkbox with multiple functions

    I am trying to make a cell that is a checkbox do multiple functions. I want to be able to click on the cell and it change to a list of 4 things. The 4 things are A B C D. It starts out as A you click it it changes to B and then to C and then to D and back to A. Can anyone help me out with this? I can make it do 3 changes but not 4.
    Thanks

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Checkbox with multiple functions

    This is done with an event macro. Open the attached workbook and click on cell E6. Macros must be enabled for this to work.
    Attached Files Attached Files
    Gary's Student

  3. #3
    Registered User
    Join Date
    03-06-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Checkbox with multiple functions

    I could not get it to work

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Checkbox with multiple functions

    Can you open the file and enable macros??

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

    Re: Checkbox with multiple functions

    Try this in the worksheet module, it uses double click rather than click.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  6. #6
    Registered User
    Join Date
    03-06-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Checkbox with multiple functions

    I am using Office 10 with Windows 7 OS. I opened your file and saved it as a macro enabled workbook, nothing but a yellow cell E6...

  7. #7
    Registered User
    Join Date
    03-06-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Checkbox with multiple functions

    This is the macro on the CheckBox I am using to display the 3 different texts and colors. I want to display 4,
    Private Sub CheckBox35_Change()
    If IsNull(CheckBox35.Value) Then
    CheckBox35.Caption = "Still Compositing"
    CheckBox35.BackColor = RGB(60, 82, 242)
    ElseIf CheckBox35.Value = True Then
    CheckBox35.Caption = "Bottled Ready for Pickup"
    CheckBox35.BackColor = RGB(225, 139, 25)
    ElseIf CheckBox35.Value = False Then
    CheckBox35.Caption = "Samples have been Picked up"
    CheckBox35.BackColor = RGB(0, 255, 0)

    End If
    End Sub

  8. #8
    Registered User
    Join Date
    03-06-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Checkbox with multiple functions

    This is the macro on the CheckBox I am using to display the 3 different texts and colors. I want to display 4,
    Private Sub CheckBox35_Change()
    If IsNull(CheckBox35.Value) Then
    CheckBox35.Caption = "Still Compositing"
    CheckBox35.BackColor = RGB(60, 82, 242)
    ElseIf CheckBox35.Value = True Then
    CheckBox35.Caption = "Bottled Ready for Pickup"
    CheckBox35.BackColor = RGB(225, 139, 25)
    ElseIf CheckBox35.Value = False Then
    CheckBox35.Caption = "Samples have been Picked up"
    CheckBox35.BackColor = RGB(0, 255, 0)

    End If
    End Sub

+ 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