Hello all,
I know that it is possible to go through every control on a form, like this:
Dim objControl As Control
Dim intCounter As Integer
For Each objControl in Form1.Controls
objControls.Caption = "Control" & intCounter
inCounter = intCounter + 1
Next
What about going through the Forms in a project?
This doesn't work though:
Dim aform As Form
For Each aform In ProjectName
If aform.Name <> "Form1" Then
aform.Enabled = False
End If
Next
Is there a way to go through forms in a project like going through controls on a form?
Thanks
Sunny L.


Reply With Quote
