+ Reply to Thread
Results 1 to 5 of 5

Optionbutton

  1. #1
    Registered User
    Join Date
    03-11-2017
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    59

    Optionbutton

    hello,

    I really need help about this.
    Capture.JPG

    So what needs to be done is that:
    If 1 is selected other 1's cannot be selected even the 2-7 anymore.
    e.g. Work schedule: my choice is 1 then I cannot have another 1 to
    Environment/Peers
    Rewards and Recognition
    Immediate Supervisor
    Location
    Compensation & Benefits
    Career Growth

    and no 2,3,4,5,6,7 optionbutton anymore(Work schedule)

    Previously I used checkbox with a code of something like this:
    *by the way I previous have like 150 check boxes and I did this for each one I ended up with a 14mb file*

    Private Sub CheckBox89_Click()
    With CheckBox89
    .Caption = IIf(.Value = True, "10", "10")
    If CheckBox89 = True Then
    TextBox27 = "10"
    CheckBox69 = False
    CheckBox70 = False
    CheckBox59 = False
    CheckBox99 = False
    CheckBox109 = False
    CheckBox119 = False
    CheckBox129 = False
    CheckBox139 = False
    CheckBox149 = False
    CheckBox80 = False
    CheckBox81 = False
    CheckBox82 = False
    CheckBox83 = False
    CheckBox84 = False
    CheckBox85 = False
    CheckBox86 = False
    CheckBox87 = False
    CheckBox88 = False
    End If
    End With
    End Sub


    I even tried to use optionbutton that's inside a frame and I won't work as I wanted it to be done.
    I really don't know what to do anymore.
    I hope somebody can help me out.
    Any ways that the codes for the checkboxes can be shortened?
    Any kind of help will be much appreciated. Thanks!

  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: Optionbutton

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED, scroll down and click Manage Attachments.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    03-11-2017
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    59

    Re: Optionbutton

    not sure why but it's saying
    sample2.xlsm - Upload of file failed.
    I'll try it again.

  4. #4
    Registered User
    Join Date
    03-11-2017
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    59

    Re: Optionbutton

    Sorry I really tried I even reduced the size of the sample file to 3mb but i'm still getting this:
    Capture.JPG

  5. #5
    Registered User
    Join Date
    03-11-2017
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    59

    Re: Optionbutton

    here's a sample file
    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)

Similar Threads

  1. OptionButton
    By diono in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2008, 08:02 AM
  2. Optionbutton
    By olio39 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-13-2007, 05:37 AM
  3. optionbutton
    By northernstar197 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-13-2007, 11:53 AM
  4. Optionbutton help
    By Craig in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-25-2005, 06:10 PM
  5. [SOLVED] for each optionbutton
    By masterphilch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2005, 01:05 PM
  6. [SOLVED] optionbutton
    By ZX in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2005, 08:05 AM
  7. [SOLVED] optionbutton
    By benb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2005, 05:06 PM
  8. OptionButton value
    By Patrick Simonds in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2005, 07:06 AM

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