checkbox indexing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shaiful
    New Member
    • Oct 2007
    • 89

    checkbox indexing

    I am working with VBA. i puted a checkbox control on the form, i looked at properties of checkbox but there is no INDEX properties. How to i can make index properties of checkbox in vba? Thx advance.
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    #2
    Originally posted by shaiful
    I am working with VBA. i putted a check box control on the form, i looked at properties of check box but there is no INDEX properties. How to i can make index properties of check box in vba? Thx advance.
    Code:
    Private WithEvents aa As CheckBox
     
    Private Sub Form_Load()
    
     Set aa = Me.Controls.Add("VB.CheckBox", "cmdOk")
     aa.Visible = True
     aa.Caption = "ALI"
    
    End Sub
     
    Private Sub aa_Click()
     MsgBox "Hello world"
    End Sub
    This is code for creating checkboxes at runtime.
    Now only problem is that i m fail to create an array of these checkboxes.
    If there any body can modify this code to an array then plz.

    Regards

    >> ALI <<

    Comment

    Working...