Private Sub InhaltvorgebenMitSchleife ()
Dim a as Integer
For Each a In Me.Controls
If TypeName(a) = "TextBox" Then
a.Text = "alles Paletti"
End If
Next a
End Sub
Private Sub InhaltvorgebenMitSchleife ()
Dim a as Integer
For Each a In Me.Controls
If TypeName(a) = "TextBox" Then
a.Text = "alles Paletti"
End If
Next a
End Sub
Private Sub CommandButton1_Click() 'Startbutton in Tabellenblatt/Codemodul Tabellenblatt
Load UserForm1
InhaltvorgebenMitSchleife
UserForm1.Show
End Sub
Sub InhaltvorgebenMitSchleife() 'Modul Tabellenblatt oder allgemeines Modul
Dim a As Control
For Each a In UserForm1.Controls
If TypeName(a) = "TextBox" Then
If a.Text = "" Then a.Text = "alles Paletti"
End If
Next a
End Sub
Gruß Gerd