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.

Word2k Makro

Empfohlene Antworten

Hi!

Ich wollte ein Makro für Word2k schreiben. Undzwar soll es dafür sorgen, das nur eine von 2 Seiten ausgedruckt. Aber auch nur wenn die zweite Seite nicht gebraucht wird.

Das sieht bei mir so aus:

Sub Druckenstandard()

Dim Start As Long

Dim Ende As Long

Dim Bereich As Range

Dim drucken As Dialog

Set Bereich = ActiveDocument.Range(Start:=Start, End:=Ende)

If ActiveDocument.FormFields("Me1").Result <> "" Then

PrintOut.Document = "2"

drucken.Range = wdPrintRangeOfPages

drucken.NumCopies = 1

drucken.Execute

End If

Set Bereich = ActiveDocument.Range(Start:=Start, End:=Ende)

If ActiveDocument.FormFields("Me1").Result = "" Then

drucken.Pages = "1"

drucken.Range = wdPrintRangeOfPages

Else

drucken.Range = wdPrintAllDocument

End If

End Sub

Jedoch kommt bei 'drucken.Pages ="1" ' dir Fehlermedlung Objektvariable oder With-Blockvariable nicht festgelegt.

Kann mir da einer sageb wie ich den Felherbeheben kann?

Dann definier doch mal das Wort "drucken".

dim/public drucken as ???

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.