I want to count all opened forms and list captions of all the forms. There is a loop control. I forgot it. can someone help me please.
thanks
raj
thanks
raj
Public Sub FindForms()
Dim frx As Form, fCount As Integer
For Each frx In Forms()
fCount = fCount + 1
Debug.Print frx.Caption
Next
Debug.Print "Total forms found: " & Format(fCount)
End Sub
Public Sub FindForms()
Dim frx As Form, fCount As Integer
For Each frx In Forms()
fCount = fCount + 1
Debug.Print frx.Caption
Next
Debug.Print "Total forms found: " & Format(fCount)
End Sub
Comment