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.

Load-Anweisung bei VBA

Empfohlene Antworten

Veröffentlicht

Folgendes Problem:

Ich hab ein kleines Makro das beim Laden/Starten/Aufrufen (wie man dazu sagen will) ausgeführt werden soll. Ich weiss das es bei einer Form der Befehl UserForm1.load ist. Wie kann ich das nun auf eine Tabelle umlegen. D.h. wird die Tabelle das erste Mal gestartet soll Code ausgeführt werden. Jemand ne Idee??? :confused:

VBA kennt erstmal keine "tabellen". meinst du damit excel-arbeitsblätter?

für diese würde ich es mal mit dem "bei aktivieren"- ereignis versuchen: Worksheet_Activate().

s'Amstel

  • Autor

Ja ich meine die Blätter, also um ganz genau zu sein sheets("Tabelle1") Und wie soll ich das nun benennen?? denn mit activate hab ich es schon probiert, hat aber nicht so richtig geklappt. Odermeinst du es als eigenständige Routine??

das ereignis muss pro tabellenblatt definiert sein und hat auch nur dort seinen geltungsbereich.

public sub worksheet_activate()


   'code, der bei aktivierung des blattes zum aufruf kommt

   msgbox "du hast auf ein tabellenblatt geklickt ;-)"


end sub

s'Amstel

  • Autor

Erstmal Danke aber....

Es ist nicht ganz das was ich mir vorgestellt hab. Wenn ich von "Tabelle2" zu "Tabelle1" wechsle kommt auch die Msg, so weit so gut. Jedoch wird ja "Tabelle1" am Anfang angezeigt und dann kommt die Msg nicht. Kann ich das noch irgendwie ändern, dass also wenn die "Tabelle1" geladen ist auch die Msg kommt???

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.