RosettaCodeData/Task/Draw-a-pixel/VBA/draw-a-pixel.vba

7 lines
234 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Sub draw()
Dim sh As Shape, sl As Shape
Set sh = ActiveDocument.Shapes.AddCanvas(100, 100, 320, 240)
Set sl = sh.CanvasItems.AddLine(100, 100, 101, 100)
sl.Line.ForeColor.RGB = RGB(Red:=255, Green:=0, Blue:=0)
End Sub