Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

For each ... in ..

I have many checkboxes in my form .
How I can with (for each sentence) check all of them .
Thanks
0
Vlad77
Asked:
Vlad77
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
For example:

dim c as control
for each c in controls
  if typename(c) = "Checkbox" then
     debug.print c.name, c.value
  end if
next

CHeers
0
 
rpaiCommented:
Dim ctl As Control
For Each ctl In Controls
  If TypeOf ctl Is CheckBox Then
     ctl.Value = 1
  End If
Next
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now