Goedemiddag,
Ik heb via dit forum de volgende macro gehad.
Private Sub CommandButton1_Click()
Dim wsSheet As Worksheet
Dim rFound As Range
Dim strFind As String
strFind = InputBox(Prompt:="Typ het Project nummer. in.")
If strFind = "" Then Exit Sub
For Each wsSheet In ThisWorkbook.Worksheets
Set rFound = wsSheet.UsedRange. _
Find(What:=strFind, LookIn:=xlValues, LookAt:=xlWhole, MatchCase:=False)
If Not rFound Is Nothing Then
Application.Goto rFound
End
End If
Next wsSheet
MsgBox "Niks gevonden"
Range("A1").Select
End Sub
echt super...maar...er is altijd een maar.. Ik kan alles in de input bos invullen.. dat is goed. Ik wil alleen graag dat hij voor alles wat er ingevuld wordt WK voor komt staan. Dus tik ik in 20 dan wordt het WK20.
Kan dat ?
alavst bedankt
Ik heb via dit forum de volgende macro gehad.
Private Sub CommandButton1_Click()
Dim wsSheet As Worksheet
Dim rFound As Range
Dim strFind As String
strFind = InputBox(Prompt:="Typ het Project nummer. in.")
If strFind = "" Then Exit Sub
For Each wsSheet In ThisWorkbook.Worksheets
Set rFound = wsSheet.UsedRange. _
Find(What:=strFind, LookIn:=xlValues, LookAt:=xlWhole, MatchCase:=False)
If Not rFound Is Nothing Then
Application.Goto rFound
End
End If
Next wsSheet
MsgBox "Niks gevonden"
Range("A1").Select
End Sub
echt super...maar...er is altijd een maar.. Ik kan alles in de input bos invullen.. dat is goed. Ik wil alleen graag dat hij voor alles wat er ingevuld wordt WK voor komt staan. Dus tik ik in 20 dan wordt het WK20.
Kan dat ?
alavst bedankt