Draw a line Using VBA in PPT

  • Thread starter Thread starter Rungun Nathan
  • Start date Start date
R

Rungun Nathan

Folks,

I have a line drawing question and have not found the solution in
any of the websites that deal with PPT.

Here is the question :

I want to be able to simulate the "drawing of a line" on board by
starting from a point and growing into a full length line/arrow.
But instead of the board I want to use VBA and PPT. When this
is set into animation, it will look like I drew the line during
the presentation. I want to use this to show how I can get
projection of objects in 3-D to engineering drawing.

I hope this description is clear.


Thanks for any help OR pointers.

rungun
 
Rungun,
Right out of the Help file

DrawLine Method
See AlsoApplies ToExampleSpecificsDraws a line in the specified slide
show view.


expression.DrawLine(BeginX, BeginY, EndX, Height)


expression Required. An expression that returns a SlideShowView
object.

BeginX , BeginY Required Single. The position (in points) of the
line's starting point relative to the upper-left corner of the slide.

EndX , EndY Required Single. The position (in points) of the line's
ending point relative to the upper-left corner of the slide.

Example
This example draws a line in slide show window one.

SlideShowWindows(1).View.DrawLine 5, 5, 250, 250

Brian Reilly, PowerPoint MVP
 
Rungun,
In addition to Brian's suggestion, you could use draw a line shape and then
animate it using Wipes to give the same impression.
 
Back
Top