يرجى الإطلاع أولا على هذا الرابط
http://www.officena.net/ib/index.php?showtopic=60147
والحدق يفهم !!
جرب الكود بهذا الشكل
Sub MySearsh()
Dim Searsh As String
Dim FirstValue As String
Dim NextValue As String
Searsh = Application.InputBox(prompt:="Veuillez saisir une valeur", Title:="Microsoft Excel", Type:=2)
For Each sh In Worksheets
With sh
If .Columns("C:C").Find(What:=Searsh, After:=ActiveCell) Is Nothing Then GoTo 1
.Activate
With .Columns("C:C").Find(What:=Searsh, After:=ActiveCell)
.Activate
FirstValue = .Address
End With
Do
If .Columns("C:C").FindNext(After:=ActiveCell) Is Nothing Then GoTo 1
If MsgBox("Rechercher un autre résultat", vbYesNo, "Microsoft Excel") = vbNo Then Exit Sub
With .Columns("C:C").FindNext(After:=ActiveCell)
.Activate
NextValue = .Address
End With
Loop Until FirstValue = NextValue
End With
1 Next sh
End Sub