Send Close Add comments: (status displays here)
Got it!  This site "www.robinsnyder.com" uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.  Note: This appears on each machine/browser from which this site is accessed.
PowerPoint VBA add-in
by RS  admin@robinsnyder.com : 1024 x 640


1. PowerPoint VBA add-in
I have done VBA programming for Office applications such as Word, Excel, Access, Outlook, and PowerPoint since about 1995. This page describes a recent (volunteer) project that uses VBA in PowerPoint.

The system is about 3,000 lines of VBA code partitioned into several modules and classes.

This system is a work in progress and is improved as needed.

2. Description
Here is some information about a PowerPoint VBA add-in that I created for a pastor at a local church. It allows him to easily and quickly add slides from several CD's of hymns, etc., to a PowerPoint presentation while resizing the text on the slide to make it visually easy to see.

3. Provided CD
Slides on CDThe slides on the CD appear to be very useful and nicely formatted.

4. Problem
Slide issueThe problem with the CD of slides, which is a commonly reported PowerPoint issue, is that if one copy-pastes the slides, whether manually or programatically, the result is not what is desired.

5. Solution
Slide solutionThe solution I adopted is to extract the content of the slides, then programatically resize the content on the new slides until the slide appears "nice". Since the author of the slides was not consistent (i.e., it appears to have been done manually) some data-scrubbing techniques are used to make the intermediate form easily usable.

Once one can format a given shape (with text) programatically into a given region (i.e., iteratively making the font size smaller until the text fits), the problem becomes a text formatting problem - and I have a good background in text formatting solutions.

6. Add-in's
Add-inAdd-in's appear in the "Add-Ins" tab in PowerPoint. This add-in is called "rmsSlider - Slide Helper Assistant".

I used a self-signed certificate so that the user can approve the Add-In when it is loaded.

7. Hymnal tab
Hymnal tabThe "Hymnal" tab allows the user to type text and any title that matches that text is displayed. This makes it easy to locate the desired hymn.

Check boxes can be used to narrow the search.

All persistent settings are saved in an XML file in a folder in the "My Documents" folder. I have found using the Windows registry to be increasingly problematic as security restrictions (e.g., from Windows, firewall software, etc.) make it much easier to just put the persistent data in a folder. Delete the folder and the application data disappears.

8. Schemes tab
Schemes tabThe "Schemes" tab allows the user to customize how the slides will be inserted.

9. Templates tab
Templates tabThe "Templates" tab allows the user to specify templates for copied text (e.g., to be inserted into a Word document) and to specify text that, if on a line by itself, will be put into italics with a different font color as it is not part of the hymn.

10. Paths tab
Paths tabThe "Paths" tab allows the user to specify where the hymns are located and provide a way to transform the PowerPoint files into an intermediate XML format.

This cannot be done, of course, unless the user has a copy of the PowerPoint hymns (hopefully a legal copy) for processing.

11. About tab
About tabThe "About" tab has information about the add-in, link buttons, etc.

I used the "Check for updates" for years with software I created for student use.

by RS  admin@robinsnyder.com : 1024 x 640