Mit (Name).show kommt das Userform auch Nur werden keine Items in die Dropdown eingefügt.
Der Code ist auch Hinterlegt (dirrect im UserForm 2) ich habe hinter dem Button folgendes hinterlegt : Load (Name) ;(Name).Show
MfG Alex K.
cbohrst.AddItem="####"
und
cborbt2.Style = fmStyleDropDownList
ein.
Private Sub CommandButton1_Click()
UserForm2.Show
End Sub
Private Sub UserForm_Initialize()
ComboBox1.AddItem "####"
ComboBox1.Style = fmStyleDropDownList
End Sub
Private Sub UserForm_Initialize()
ComboBox1.AddItem "####"
ComboBox1.Style = fmStyleDropDownList
End Sub
Private Sub cmbok_Click()
If txtcode = "123456" Then Klappe
If Not txtcode = "123456" Then Unload code
End Sub
Private Sub cmbzurueck_Click()
Unload code
End Sub
Sub Klappe()
Unload code
'Hersteller einfügen
Load einfuegen
einfuegen.Show
Private Sub einfuegen_Initialize()
cmbrb2t.AddItem "Bitte Hersteller wählen"
cborbt2.AddItem "KUKA"
cborbt2.AddItem "ABB"
cborbt2.ListIndex = 0
'desing von Hersteller- und Lastfall-fenster werden bestimmt
cborbt2.Style = fmStyleDropDownList
cboLF2.Style = fmStyleDropDownList
End Sub
MfG Alex