+ Reply to Thread
Results 1 to 3 of 3

Userform Yes - No Default

  1. #1
    Registered User
    Join Date
    07-30-2004
    Posts
    20

    Question Userform Yes - No Default

    I have a userform that has a simple Yes or No selection, I didn't want to use a message box for certain reasons, I needed a userform. Anyhow, my issue is that the question it is asking the user is very important, and I don't want it to default to YES! I don't want it to default to NO either. Is there a way to not default to anything, but rather force them to click on an option themselves?

    Thank you,

    Moe

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    You could have the following initialise code for your userform which forces the values for both the optionbuttons to false before opening:

    Private Sub UserForm_Initialize()

    OptionButton1.Value = False
    OptionButton2.Value = False

    End Sub

    Or simply, in the design stage/mode, set the Value property to false for both the option buttons. The properties view can be obtained from View > Properties mode in the VB editor.

    Mangesh

  3. #3
    Registered User
    Join Date
    07-30-2004
    Posts
    20
    But I'm using commandbuttons, does that make a difference? I don't think I can set the "value" of a command button can I?

+ 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