Private Sub Workbook_Open() Dim ContenuRech As String ContenuRech = InputBox("Entrer le contenu à rechercher", "Us pour CS") Cells.Find(What:=ContenuRech, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _ xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _ , SearchFormat:=False).Activate End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Sub workbook_open() Dim contenurech As String contenurech = InputBox("entrer le contenu à rechercher", "us pour cs") On Error Resume Next Cells.Find(what:=contenurech, after:=ActiveCell, LookIn:=xlFormulas, lookat:= _ xlPart, searchorder:=xlByRows, searchdirection:=xlNext, MatchCase:=False _ , searchformat:=False).Activate If Err = 91 Then MsgBox "Aucune correspondance" End Sub