Bonjour, je voudrais adapter la macro suivante qui me servait à imprimer les onglets où je trouvais QUESTIONNAIRE pour rechercher QUESTIONNAIRE mais cette fois m'arreter sur le premier onglet qui contient QUESTIONNAIRE, stocker le nom de cet onglet , et lancer une macro ( ex mamacro ).
Sub Macro1()
Dim sh As Worksheet, laCell As Range
For Each sh In Sheets
Set laCell = sh.Cells.Find(what:="QUESTIONNAIRE", lookat:=xlWhole)
If Not laCell Is Nothing Then sh.PrintOut Copies:=1, Collate:=True
Next sh
End Sub
Merci à tous pour votre aide
Stephane
Sub Macro1()
Dim sh As Worksheet, laCell As Range
For Each sh In Sheets
Set laCell = sh.Cells.Find(what:="QUESTIONNAIRE", lookat:=xlWhole)
If Not laCell Is Nothing Then sh.PrintOut Copies:=1, Collate:=True
Next sh
End Sub
Merci à tous pour votre aide
Stephane