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.

Word Makro Laufzeitfehler 91 trotz Sleep()

Empfohlene Antworten

Hallo Zusammen,

Habe ein kleines Problem bei der Aufrufung eines selbstgeschriebenen Makros. Führe ich es aus wenn Word schon offen ist funktioniert es reibungslos, rufe ich es aber direkt beim starten von Word auf ("C:\Programme\Microsoft Office\Office12\WINWORD.EXE" /mMakro2), erhalte ich einen "Laufzeitfehler 91: Objektvariable oder With-Blockvariable nicht festgelegt". Ich habe schon gelesen das es daran liegen kann das Word noch nicht ganz geladen hat, also habe ich noch eine Sleep()-Funktion gebastelt, diese hilft mir leider nicht weiter. Mein Makro sieht wie folgt aus:

Sub Makro2()

'

' Makro2 Makro

'

'

    Sleep (10000) '10 Sekunden

    Selection.PasteAndFormat (wdPasteDefault)

    Selection.WholeStory

    Application.Run MacroName:="StartPtedit"

End Sub

danke im voraus

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.