Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Combobox mit Tabellenblatt-Namen füllen?

Empfohlene Antworten

Veröffentlicht

Hallo,

Was giebt es für Möglichkeiten eine Combobox dynamisch mit den Namen der Tabellenblätter zu füllen?

Hat vielleicht jemand einen Beispiel-Code für mich?

Danke

Grüße

Dj-G

Versuchs mal mit

Sub comboInit()
Dim a As Integer
Dim b As Integer

b = ActiveWorkbook.Sheets.Count
Sheets("tabelle1").ComboBox1.Clear
Sheets("tabelle1").ComboBox1.ListRows = b

For a = 1 To b
Sheets("tabelle1").ComboBox1.AddItem (Worksheets(a).name)
Next a
End Sub[/PHP]

Das musst dann halt entsprechend aufrufen.....auf Workbook_open und Workbook_NewSheet wuerd ich sagen.

Naja probiers halt mal :)

Goos

Welche Programmiersprache soll der Code den sein und welche Tabellennamen ?? aus EXCEL? oder wie?

Vielen Dank.

Funzt einwandfrei.

Grüße

Dj

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.