Sub EnregistrerEtIncrémenter()
Dim RepDest As String
Application.ScreenUpdating = False
RepDest = ActiveWorkbook.Path & "\facture " & Range("B10") 'repertoire de destination à adapter "je cherche à le mettre dans "C:\Documents and Settings\invité\Mes documents\Facture\"
If MsgBox("Voulez vous enregistrer la facture N°" & Range("B10") & " ?", vbQuestion + vbYesNo, "Enregistrement de la facture") = vbNo Then _
Exit Sub
'End If 'Je l'ai mi en commentaire car il créait une erreur
Sheets("Facture").Copy 'remplace facture par le nom de ta feuille : "ma feuille s'appel Facture"
[COLOR=red][B]SupprimerBoutonEnregistrer[/B][/COLOR] 'supprime le bouton sur la copie
ActiveWorkbook.SaveAs RepDest & "\facture" & Range("B10") & ".xlsm"
ActiveWorkbook.Close
Range("B9,A14:A24,E14:E24").ClearContents
Range("B10") = Range("B10") + 1
Application.ScreenUpdating = True
Range("B9").Select
End Sub
Sub [COLOR=red][B]SupprimerBoutonEnregistrer[/B][/COLOR]()
Dim shp As Shape
For Each shp In ActiveSheet.Shapes
If shp.DrawingObject.Caption Like "Enregistrer*" Then shp.Delete
Next shp
End Sub