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.

VB und Excel

Empfohlene Antworten

Moinsen!!

Ich habe folgendes Script:


Private Sub Charge_bearbeiten_Click()

Dim xlApp As Excel.Application

Dim xlBook As Excel.Workbook

Dim xlSheet As Excel.Worksheet

    Set xlApp = Excel.Application

    xlApp.Visible = True

    Set xlBook = xlApp.Workbooks.Open(Pfad & Charge_Aktu_TxBx)

    Set xlSheet = Worksheets("Tabelle1")

    xlApp.Quit

    Set xlApp = Nothing

End Sub

Dies wird bei einem Klick auf einen Button in einem Formular ausgeführt und soll später noch Daten aus einer Excel-Tabelle auslesen.

Mein Problem:

Nachdem das Script durchgelaufen ist befindet sich immer noch eine Instanz von Excel im Task-Manager. Eigentlich sollte das doch durch xlApp.Quit raus sein.

Ich kann das Formular aber auch nicht schliessen (Wenn es geht, wie? Kenne nur Formular.Hide, dann isses ja aber nur im Hintegrund), denn dann wäre Excel wirklich wech...

Hi!

Hatte das selbe Problem. Is ganz einfach:

bevor du xlApp.Quit sagst musst du (am besten alles) unloaden:

Unload xlSheet

Set xlSheet = Nothing

Unload xlBook

Set xlBook = Nothing

Ich glaub so hats gepaßt. Falls es nicht funzt mußt du halt nochma fragen.

Viel Spaß

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.