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.

Namen von Excelldatenblättern in eine Combobox in word

Empfohlene Antworten

Huhu

ich nutze office 2003 und komme garde beim Programmieren mit Word VBA nicht weiter.

Also folgendes ich möchte die namen meiner exceldatenblätter in eine combobox packen so weit so gut in excel kein problem:

Dim ws As Worksheet

For Each ws In ThisWorkbook.Worksheets

ComboBox1.AddItem ws.Name

Next ws

so nun kommen wir zu meinem Problem:

ich rufe eine exceldatei aus word herraus auf, sie ist für den benutzer nciht sichtbar aber ich möchte ja nun in meinr combobox, die sich in einer (Word) Userform befindet ,eine Auflistung der Datenblattnamen haben. Also wie funzt das 0o? durch rumprobieren und googeln komme ich nicht weiter

Ich hoffe ihr könnt mir da helfen

Liebe Grüße Bloody Rain

Hallo

Statt "thisworkbook" die ".workbooks("name") deines referenzierten Excelobjekts

verwenden. z.B.

Public Sub test()

Dim ws As Worksheet

Dim xls As New Excel.Application

xls.Workbooks.Open "c:\temp\test.xls"

xls.Visible = True

For Each ws In xls.Workbooks("test.xls").Worksheets

Debug.Print ws.Name

Next ws

End Sub

gruß, Dr Frink

Bearbeitet von DrFrink

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.