Consulting

Results 1 to 3 of 3

Thread: Solved: Checkboxes form Form Controls

  1. #1

    Solved: Checkboxes form Form Controls

    Hi everybody
    I found a code which works fine for the checkboxes from ActiveX Controls..
    The code

    Sub UntickCheckBoxesControls()
    Dim I As Long
    For I = 1 To 4
        ActiveSheet.OLEObjects("CheckBox" & I).Object.Value = False
    Next I
    End Sub
    I tried to apply it on checkboxes from Form Controls
    Any help about that..I'd be appreciate

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]


    Sub UntickCheckBoxesControls()
    Dim i As Long
    For i = 1 To 4
    ActiveSheet.CheckBoxes("Check Box " & i).Value = False
    Next i
    End Sub
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Thank you very much Mr. xld
    You are always in my heart as my brother

Posting Permissions

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