Dim alan As String
alan = "Text"
For Each c In UserForm1.Controls
If Left(c.Name, 7) = "TextBox" Then
Debug.Print c.Name
say = say + 1
End If
Next c
MsgBox say & " " & "Adet Textbox Var"
Felix,
Umarım faydalı olur.Biraz amatorce oldu ama zannedersem soruna cozum olur..
Kod:Dim alan As String alan = "Text" For Each c In UserForm1.Controls If Left(c.Name, 7) = "TextBox" Then Debug.Print c.Name say = say + 1 End If Next c MsgBox say & " " & "Adet Textbox Var"