Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tsohr/c0cb7ea4fefbc2d55b85 to your computer and use it in GitHub Desktop.
Save tsohr/c0cb7ea4fefbc2d55b85 to your computer and use it in GitHub Desktop.
Sub myline(x1, x2, l)
Dim i As Integer
Dim shp As Shape
Dim sld As Slide
Set sld = Application.ActiveWindow.View.Slide
Set shp = sld.Shapes.AddShape(37, x1, 10 * l, x2 - x1, 0)
shp.Fill.ForeColor.RGB = RGB(137, 143, 75)
shp.Fill.BackColor.RGB = RGB(137, 143, 75)
shp.ShapeStyle = 10002
End Sub
@tsohr
Copy link
Author

tsohr commented Jul 18, 2014

AddShape(37, ...) --> arrow shape
AddLine --> real line shape

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment