titeuf136
Messages postés91Date d'inscriptionvendredi 15 janvier 2010StatutMembreDernière intervention19 octobre 2012
-
17 janv. 2010 à 01:06
titeuf136
Messages postés91Date d'inscriptionvendredi 15 janvier 2010StatutMembreDernière intervention19 octobre 2012
-
30 janv. 2010 à 22:53
Bonjour,
je souhaite tracer un segment en vba à partir de donnée figurant sur une feuille excel.
Voici ce que j'ai trouvé dans l'aide visual basic:
Set myDocument = Worksheets(1)
With myDocument.Shapes.AddLine(10, 10, 250, 250).Line
.DashStyle = msoLineDashDotDot
.ForeColor.RGB = RGB(50, 0, 128)
End With
En suppriment ".DashStyle = msoLineDashDotDot" j'obtient une ligne continue ok
Comment faire pour épaissir le trait?
Comment dessiner un rond aux extrémité du segment?
fohaf
Messages postés60Date d'inscriptionvendredi 14 novembre 2003StatutMembreDernière intervention 6 septembre 20122 17 janv. 2010 à 02:06
Salut,
tu peux modifier l'épaisseur et les flèches de ton trait comme ça
With myDocument.Shapes.AddLine(10, 10, 250, 250).Line
.DashStyle = msoLineDashDotDot
.ForeColor.RGB = RGB(50, 0, 128)
' Epaisseur du trait
.Weight = 2
' Format des début et fin de trait
.BeginArrowheadLength = msoArrowheadShort
.BeginArrowheadStyle = msoArrowheadOval
.BeginArrowheadWidth = msoArrowheadNarrow
.EndArrowheadLength = msoArrowheadShort
.EndArrowheadStyle = msoArrowheadOval
.EndArrowheadWidth = msoArrowheadNarrow
End With