How to count the number of textboxes in a form
Posted on January 4, 2009
1 2 3 4 5 6 | 'Controls - How to count the number of textboxes in a form Dim ctl As Control, iCount As Integer For Each ctl In Me.Controls If TypeOf ctl Is TextBox Then iCount = iCount + 1 Next ctl Debug.Print iCount |
Related posts:
- How to Clear all TextBoxes on the form
- How to Clear all TextBoxes in a Form
- How to select all text with Ctrl+A in all TextBoxes in a form
- How to count number of files in a given directory (in two ways)
- How to Count the Number of lines in a Text Box
- How to clear all control’s values in a form
- How to count number of sub-directories in a given directory (in two ways)
- How to count number of lines in a Text box
- How to reposition and resize all the controls on a form whenever the form is resized.
- How to save data from different textboxes in the same file.








