+ Reply to Thread
Results 1 to 6 of 6

Option Box & Scroll Bar Help

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Option Box & Scroll Bar Help

    Hi

    This is the first time I have used option boxes and scroll bars so I am in need of some help please...

    The user has the option of selecting 8 boxes. Depending on the option selected I need the relevant column retuned from row 11 – this should go in cell C9

    e.g. If the option box in column L is selected then Cell C9 would return £0.83 (this is from cell L11).

    The added complication is that if the option box in column S is selected then the scroll bar comes into play. Here the user has the option of selecting Full/Half/None. If It is full then the value of C9 should be £0.20 (from cell S11), if its half then this should be S11 dived by 2 and if zero it should be zero.

    I hope this is clear I have uploaded a detailed example – can anyone help?
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Option Box & Scroll Bar Help

    changed a few things for you
    Attached Files Attached Files
    Last edited by martindwilson; 05-31-2012 at 06:05 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Option Box & Scroll Bar Help

    see if it helps you
    Sub OptionButton3_Click()
    [c9] = [m11]
    End Sub
    Sub OptionButton2_Click()
    [c9] = [l11]
    End Sub
    
    ' please continue for the rest of buttons
    
    Sub OptionButton9_Click()
    Select Case Range("c7").Value
    Case Is = "Full"
    [c9] = [s11]
    Case Is = "Half"
    [c9] = [s11] / 2
    Case Is = "None"
    [c9] = "0"
    End Select
    End Sub
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Option Box & Scroll Bar Help

    oh another coder lol, functions over code any time!

  5. #5
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Re: Option Box & Scroll Bar Help

    This is brilliant! I am always amazed by the helpfullness of some members!

    Thanks Martin!!

  6. #6
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Option Box & Scroll Bar Help

    Hi Martin, I am really sorry....I did not refresh the page!
    I am sorry!

+ 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