wie kann ich überprüfen ob eine Steuerelement (Button, Input, etc.) existiert?
Mit
If Not Worksheets("mySheet").myInputField Is Nothing Then
' do something cause field exists
End If
kommt ein LZF. :/
Danke für jede Hilfe
Gruß
Sub tt()
Dim myControl As Object
On Error Resume Next
Set myControl = Sheets(1).CommandButton1
On Error GoTo 0
If myControl Is Nothing Then
MsgBox "Fehler"
Else
MsgBox "OK"
End If
End Sub
Gruß
Rudi
Eine Kuh macht Muh, viele Kühe machen Mühe