Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Anzeige
Inhaltsverzeichnis

VBA: objControl

Forumthread: VBA: objControl

VBA: objControl
11.10.2019 02:43:32
Charly
Hallo,
wie kann Ich den Code in einem Modul mit "Public" richtig ansprechen.
Ich möchte diesen aus einem Modul per Call nutzen in meiner UF.
    Dim objControl As Control
For Each objControl In Controls
Select Case TypeName(objControl)
Case "TextBox"
objControl.Text = ""
Case "ComboBox"
objControl.ListIndex = -1
Case "CheckBox"
objControl.Value = False
'            Case "OptionButton"
'               objControl.Value = False
End Select
Next
Danke für jegliche Hilfe!
Gruß Charly
´
Anzeige

2
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
AW: VBA: objControl
11.10.2019 07:47:29
Hajo_Zi
Hallo Charly,
ich baue keine Datei nach
For Each objControl In Userform1.Controls

AW: VBA: objControl
11.10.2019 15:53:33
Charly
Hallo Hajo,
danke für deine Antwort, die Anpassung funktioniert...
Gruß Charly
Anzeige

Forumthreads zu verwandten Themen

Anzeige
Anzeige
Anzeige
Anzeige