kennt jemand eine schnelle Methode um zu
prüfen ob ein Tabellenblatt leer ist, also
nicht irgendwo noch Daten herumdümpeln ?
Danke schon mal
Gruss Andreas
Sub Andreas()
Dim Adr As String
Adr = "$A$1"
On Error Resume Next
Adr = Cells(Cells.Find("*", Range("A1"), xlFormulas, , xlByRows, xlPrevious).Row, _
Cells.Find("*", Range("A1"), xlFormulas, , xlByColumns, xlPrevious).Column).Address
On Error GoTo 0
If Adr = "$A$1" And Range("A1").Value = "" Then
MsgBox "Blatt ist leer !"
Else
MsgBox "Blatt ist nicht leer !"
End If
End Sub
Sub aaa()
If IsEmpty(Sheets(1).UsedRange) Then
MsgBox "Tabelle Leer"
Else
MsgBox "Tabelle gefüllt"
End If
End Sub