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.

Pflichtfelder auf unterschiedlichen Tabellenblätter - Formel

Empfohlene Antworten

hallo zusammen,

ich habe eine excel liste in der ich pflichtfelder eingegeben habe.

es funktioniert einwandfrei- habe auf einem tabellenblatt eine formel erstellt, dass das dokument erst abzuspeichern ist, wenn alle pflichtfelder ausgefüllt sind.

unter 'DieseArbeitsmappe' habe ich folgende Formel eingegeben:

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)

Dim Pflichtbereich As Range, Anzahl

With Worksheets("Schreibauftrag")

Set Pflichtbereich = Union(.Range("B15"), .Range("B17"), .Range("B19"), .Range("C21"), .Range("E21"), .Range("C23"), .Range("E23"))

End With

Anzahl = Pflichtbereich.Cells.Count

If Application.WorksheetFunction.CountA(Pflichtbereich) <> Anzahl Then

MsgBox "Bitte füllen Sie zuerst alle Pflichtfelder aus !", vbOKOnly + vbInformation, _

"Datei wurde NICHT gespeichert !"

Cancel = True

End If

End Sub

wie gesagt, es klappt bestens. Nur habe ich jetzt ein Problem.

Ich habe mehrere Tabellenblätter in der ich Pflichtfelder eingeben muss. Wenn ich die Formel jetzt kopiere und das Tabellenblatt "Schreibauftrag" und die Zeilenbezeichnungen ändere, wie ich es brauche, dann klappt es nicht.

Darf ich die Formel nur einmal verwenden? Wie mach ich das?

(Ich kenn mich in Excel nicht wirklich sehr gut aus, also bitte nicht mit Fachbegriffen umherwerfen :D )

Vielen Dank 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.