bonjour a vous
dans un code qui permet de créer une facture peut on y ajouter une ligne de code afin d'y intégré un bouton déjà codé, voici le code non fini de création de feuille
Dim Sh As Worksheet, Trouve As Range
Feuil9.Copy
Set Sh = ActiveSheet
Sh.Name = "Facture " & Sh.Range("D1").Value
Sh.Range("D1") = "FACTURE"
With Sh
With .Range("C:C")
Set Trouve = .Find(What:="Arrêtée Somme", LookIn:=xlValues, _
LookAt:=xlPart, MatchCase:=False, SearchDirection:=xlNext)
If Not Trouve Is Nothing Then
Trouve.Offset(1).Resize(20, 2).Delete (xlUp)
End If
End With
End With
End Sub
et peut 'on me commenter la dernière partie du code
With Sh
With .Range("C:C")
Set Trouve = .Find(What:="Arrêtée Somme", LookIn:=xlValues, _
LookAt:=xlPart, MatchCase:=False, SearchDirection:=xlNext)
If Not Trouve Is Nothing Then
Trouve.Offset(1).Resize(20, 2).Delete (xlUp)
End If
End With
End With
Pascal