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

ComboBox

Forumthread: ComboBox

ComboBox
22.01.2004 21:34:21
Detlev

Private Sub Workbook_Open()
Dim oCbo As CommandBarComboBox
Dim wks As Worksheet
Dim iCounter As Integer
Call CmdDelete
With Application.CommandBars("Worksheet Menu Bar")
Set oCbo = .Controls.Add( _
Type:=msoControlComboBox, before:=.Controls.Count)
End With
With oCbo
.Caption = "Monate"
.OnAction = "BlattAuswahl"
For iCounter = 0 To 11
.AddItem Format(DateSerial(1, iCounter + 1, 1), "mmmm")
Next iCounter
.ListIndex = 1
End With
End Sub

Ich habe eine Combobox angelegt und wenn eine Auswahl erfolgt wird nach Blattauswahl verzweigt.
Meine Frage: Kann ich und wenn wie den Inhalt der Auswahl in ein Feld NAME übertragen? Und wie komme ich daran?
Bitte um Hilfe
Anzeige

4
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
AW: ComboBox
22.01.2004 21:37:34
K.Rola
Hallo,
"Inhalt der Auswahl in ein Feld NAME übertragen? "
Was ist das für ein Feld?
Gruß K.Rola
AW: ComboBox
22.01.2004 21:39:17
Detlev
Dim Name as String
AW: ComboBox
22.01.2004 21:43:58
K.Rola
Hallo,
das ist eine Variable als String deklariert und hat mit einem Feld nix zu tun.
Name = Application.commandbars(1).controls("Monate").Text
Gruß K.Rola
Anzeige
AW: ComboBox
22.01.2004 21:47:01
Detlev
vielen Dank
Anzeige
Anzeige
Live-Forum - Die aktuellen Beiträge
Datum
Titel
14.05.2026 13:31:09
14.05.2026 09:50:42
13.05.2026 19:14:18