Sub CommandButton1_Klicken()
With Worksheets("Option")
Columns("G:G").Select
Selection.Find(What:=TextBox1.Text, After:=ActiveCell, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
End With
End Sub
With Worksheets("Option")
.Columns("G").Find(What:=...
lg Matthias
Sub CommandButton1_Klicken()
With Worksheets("Option")
.Columns("G").Select
Selection.Find(What:=TextBox1.Text, After:=ActiveCell, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
End With
End Sub
Auch wenn ich die Select Methode weglasse funktioniert es nicht :(
Sub CommandButton1_Click()
im Zelle as range
Set Zelle = Worksheets("Option").Columns("G:G").Find( _
What:=TextBox1.Text, After:=ActiveCell, _
LookIn:=xlValues, LookAt:=xlPart, _
SearchOrder:=xlByColumns, SearchDirection:=xlNext, _
MatchCase:= False, SearchFormat:=False)
If Zelle is Nothing then
Msgbox "kein Treffer"
else
Application.Goto Zelle
end if
End Sub
btw bei diesen Eventmakros, dh bei Makros bei bei Mausklick oder ähnlichem ausgeführt werden sollen, musst du die vorgegebene Schreibweise des Makronamens exakt einhalten, sonst kann VBA dieses Makro der entsprechenden Aktion nicht zuordnen und ausführen. Eigene Markonamen darfst du dir hier nicht ausdenken.
Sub Schaltfläche2_Klicken()
UserForm1.Show
End Sub
Sub CommandButton1_Click()
Dim Zelle As Range
Set Zelle = Worksheets("Option").Columns("G:G").Find(What:="TextBox1.Text", _
LookIn:=xlValues, LookAt:=xlPart, _
SearchOrder:=xlByColumns, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
If Zelle Is Nothing Then
MsgBox "kein Treffer"
Else
Application.Goto Zelle
End If
End Sub
Sub CommandButton1_Klicken()
With Worksheets("Option")
Columns("G:G").Select
Selection.Find(What:=TextBox1.Text, After:=ActiveCell, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
End With
End Sub
With Worksheets("Option")
.Columns("G").Find(What:=...
lg Matthias
Sub CommandButton1_Klicken()
With Worksheets("Option")
.Columns("G").Select
Selection.Find(What:=TextBox1.Text, After:=ActiveCell, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
End With
End Sub
Auch wenn ich die Select Methode weglasse funktioniert es nicht :(
Sub CommandButton1_Click()
im Zelle as range
Set Zelle = Worksheets("Option").Columns("G:G").Find( _
What:=TextBox1.Text, After:=ActiveCell, _
LookIn:=xlValues, LookAt:=xlPart, _
SearchOrder:=xlByColumns, SearchDirection:=xlNext, _
MatchCase:= False, SearchFormat:=False)
If Zelle is Nothing then
Msgbox "kein Treffer"
else
Application.Goto Zelle
end if
End Sub
btw bei diesen Eventmakros, dh bei Makros bei bei Mausklick oder ähnlichem ausgeführt werden sollen, musst du die vorgegebene Schreibweise des Makronamens exakt einhalten, sonst kann VBA dieses Makro der entsprechenden Aktion nicht zuordnen und ausführen. Eigene Markonamen darfst du dir hier nicht ausdenken.
Sub Schaltfläche2_Klicken()
UserForm1.Show
End Sub
Sub CommandButton1_Click()
Dim Zelle As Range
Set Zelle = Worksheets("Option").Columns("G:G").Find(What:="TextBox1.Text", _
LookIn:=xlValues, LookAt:=xlPart, _
SearchOrder:=xlByColumns, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
If Zelle Is Nothing Then
MsgBox "kein Treffer"
Else
Application.Goto Zelle
End If
End Sub