fr832
XLDnaute Occasionnel
Bonsoir je cherche par le biais de ce code de mettre en forme à la fin de la saisie le contour de mon tableau et l'interieur.
Mais ce code bug , serait il possible de m'aider , par avance merci, amitiés
Mais ce code bug , serait il possible de m'aider , par avance merci, amitiés
Code:
Public DerLig As Long
Sub mfc()
With Range(Cells(DerLig, 1), Cells(DerLig, 10))
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlEdgeBottom).LineStyle = xlNone
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlInsideVertical)
[COLOR="Red"].LineStyle = xlContinuous[/COLOR]
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
End With
End Sub