Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
Public x As String
Public y As String
Public t As Integer
Public i As Long
Public z As String
z = ActiveSheet.UsedRange.Rows.Count
x = TextBox1
y = TextBox2
If t = 2 Then
For i = i To z
If Cells(i, 1) = x And Cells(i, 2) = y Then
t = 2
Exit For
End If
Next
If t = 2 Then
ActiveSheet.Cells(i, 1).Select
Else
MsgBox "nicht gefunden!", vbExclamation
TextBox1 = ""
TextBox2 = ""
End If
End If
If TextBox1 = "" And TextBox2 = "" Then
MsgBox "nicht gefunden!", vbExclamation
End If
For i = 2 To z
If Cells(i, 1) = x And Cells(i, 2) = y Then
t = 1
Exit For
End If
Next
If t = 1 Then
ActiveSheet.Cells(i, 1).Select
t = 2
Else
MsgBox "nicht gefunden!", vbExclamation
TextBox1 = ""
TextBox2 = ""
End If
Private lastI As Long
Public Sub mySearch()
Dim x, y, i, t
x = TextBox1
y =TextBox2
for i = lastI+1 to ActiveSheet.UsedRange.Rows.Count
if Cells(i, 1) = x and Cells(i, 2) = y then
t = 2
lastI = i
exit for
end if
next
...
End Sub