Gruppe
Feature
Problem
In Zelle G1 befinde sich eine Addition der Zellen E1 und F1. Die Eingaben in E1 und F1 sollen auf einen Maximalwert von 5 in Zelle G1 begrenzt werden. Lösung über Menü DATEN / GÜLTIGKEIT.
ClassModule: Tabelle1
Private Sub Worksheet_Calculate()
If Range("G3").Value > 5 Then
Application.Undo
End If
End Sub
StandardModule: Modul1
Function Undo_mk()
Application.Undo
End Function