RosettaCodeData/Task/Draw-a-pixel/VBA/draw-a-pixel.vba
2023-07-01 13:44:08 -04:00

6 lines
234 B
Text

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