+ Reply to Thread
Results 1 to 5 of 5

How to enable Userform with optionbutton checked?

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    USA
    MS-Off Ver
    Office365
    Posts
    32

    How to enable Userform with optionbutton checked?

    Dear Excel Experts,

    I have designed a userform with 10 optionbuttons. When these optionbuttons are clicked I linked the value in the cell next to active cell using offset as like this :
    If OptionButton10.Value = True Then ActiveCell.Offset(0, 4).Value = 20
    If OptionButton9.Value = True Then ActiveCell.Offset(0, 4).Value = 30 (and so forth)

    The userform is basically a score card to give the score against each rows in the worksheet.
    This userform pops when i clicked the last cell of a row.

    Now what i want is, when I open userform, I want optionbutton "marked" based on the cell value above.
    I have also attached excel file to make my question more clear.

    Any kicks to roll on right direction will be very much appreciated.

    best,
    Prad
    Attached Files Attached Files
    Last edited by meprad; 05-23-2013 at 10:29 AM.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: How to enable Userform with optionbutton checked?

    try this: File.xlsm

    file contains your code plus:
    Please Login or Register  to view this content.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    12-12-2012
    Location
    USA
    MS-Off Ver
    Office365
    Posts
    32

    Re: How to enable Userform with optionbutton checked?

    Dear Tehnexus - Super !!! you saved me my friend and thanks a million for your help. you are a excel magician. May I dare to ask you one more simple thing? sorry, it may sound stupid...

    I want to close userform when the escape key is pressed, I tried with few codes but no success. Once again thank you so very much ......

    best,
    Prad

  4. #4
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to enable Userform with optionbutton checked?

    Try this file with button "Exit". You can either hit "Exit" button or ESC key.

    Regards,
    tt3
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-12-2012
    Location
    USA
    MS-Off Ver
    Office365
    Posts
    32

    Re: How to enable Userform with optionbutton checked?

    Thank you soooo much Tuongtu3 ....this is such a great help for me....I'll keep posting with different challenges in excel that come across in days to come. wish you all good !

    regards,
    Prad

+ 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