Consulting

Results 1 to 2 of 2

Thread: Solved: Making CheckBox1 Selected By Default

  1. #1
    VBAX Expert
    Joined
    Feb 2010
    Posts
    696
    Location

    Solved: Making CheckBox1 Selected By Default

    I have created a simple user form that contains two check boxes and a single text box. Is there a way to cause CheckBox1 to be selected by default when the user form is activated? I've tried:

    [vba]
    CheckBox1.Default
    [/vba]

    I've also tried:

    [vba]
    CheckBox1.Value = True
    [/vba]

    I've tried inserting the above code in the section for CheckBox, in the section for the Userform, as well as in the commandbutton code which calls the userform. Nothing seems to work.

    Thanks,

    Opv

  2. #2
    VBAX Expert
    Joined
    Feb 2010
    Posts
    696
    Location
    I figured it out. All I had to do is go into the properties for CheckBox1 and change the Value setting.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •