AW: Liste aus Objekten und deren Anzahl
07.04.2021 05:35:51
Hajo_Zi
Hallo Frank,
starte den VBA Editor (Alt+F11), Bild sollte zweigeteilt sein ansonsten Strg+R, gehe auf Deine Datei, rechte Maustaste, Einfügen Modul, Code ins rechte Fenster kopieren, VBA Editor schließen (Alt+F4, oder Kreuz rechts oben).
Register Ansicht, Befehlsgruppe Makros, auf Makro klicken, Makros anzeigen, Makro auswählen und ausführen (Alt+F8 ).
Option Explicit
Sub Liste()
Dim LoLetzte As Long
Dim LoI As Long
Dim LoJ As Long
Dim LoZeile As Long
LoLetzte = IIf(IsEmpty(Cells(Rows.Count, 1)), Cells(Rows.Count, 1).End(xlUp).Row, Rows. _
Count)
For LoI = 1 To LoLetzte
For LoJ = 1 To Cells(LoI, 2)
Cells(LoZeile + 1, 3) = Cells(LoI, 1)
LoZeile = LoZeile + 1
Next LoJ
Next LoI
End Sub