Graphics Drawing Library for PowerPoint VBA by using AddShape Instructions

Reason for development

VBA(Visual Basic for Applications) attached to PowerPoint is a mechanism to add a function to process complex operations automatically.

Following the case of Excel, graphics drawing subprocedures using the AddShape command are newly defined as a module of PowerPoint VBA. By providing it as a library, even beginners can use it easily. Using this library makes it possible to create a practical program that involves drawing. The source program is available for free.

Operating environment

PowerPoint on Microsoft Windows

※ We have not confirmed PowerPoint on OS X (macOS).

Feature

  • "Graphics with world coordinates" type of graphics library is provided
  • In "Graphics with world coordinates", the drawing area and coordinate system can be freely set by defining the range of viewport and drawing window by yourself.

Limitation

  • When the number of drawing objects is very large, the processing speed may drop sharply from a certain stage. If you increase the number of drawing objects extremely, PowerPoint may terminate abnormally depending on the environment of your computer.
  • If the proportion of drawing commands in a program is extremely large, control such as interrupt or cancel during execution may not be effective.

It is recommended to use the library using GDI32 instructionsn when you use many drawing objects or you need the execution speed.