Live-Forum - Die aktuellen Beiträge
Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Inhaltsverzeichnis

Combo Box VBA

Forumthread: Combo Box VBA

Combo Box VBA
04.11.2014 07:07:19
Marc
Hello,
please see attached uploaded file.
I try to chose some Input data from the Combo box and list those under each other. So first I chose A and click on the Add button. This should go to D1. After that I chose B and it should go under D2. And so on....
Thanks for help!!
Marc
https://www.herber.de/bbs/user/93527.xlsx

Anzeige

3
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
AW: Combo Box VBA
04.11.2014 09:30:24
Rudi
Hallo,
Private Sub CommandButton1_Click()
Dim lRow As Long
lRow = Cells(Rows.Count, 4).End(xlUp).Row
If lRow > 1 Then lRow = lRow + 1
Cells(lRow, 4) = ComboBox1
End Sub
Gruß
Rudi

AW: Combo Box VBA
04.11.2014 16:35:38
Marc
Hi Rudi,
thanks a lot. Right now it always replace D1 when I chose a new item from the list. Is it possible that it will add up to the cells D2, D3 etc. ? So I can create another list out of my original list.
Thanks
Marc

Anzeige
AW: Combo Box VBA
05.11.2014 19:12:14
Uduuh
Hello,
sorry for the mistake.
Private Sub CommandButton1_Click()
Dim lRow As Long
lRow = Cells(Rows.Count, 4).End(xlUp).Row
If Cells(lRow, 4)  "" Then lRow = lRow + 1
Cells(lRow, 4) = ComboBox1
End Sub
Gruß
Rudi
;

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Entdecke mehr
Finde genau, was du suchst

Die erweiterte Suchfunktion hilft dir, gezielt die besten Antworten zu finden

Suche nach den besten Antworten
Unsere beliebtesten Threads

Entdecke unsere meistgeklickten Beiträge in der Google Suche

Top 100 Threads jetzt ansehen
Anzeige