I have a VBA macro that creates a PPT deck from rows in Excel. It works great on my PC (with PowerPoint Object Library 15.0), but when I distribute to people with an older PowerPoint Object Library (e.g., 14.0), it hoses the format of pasted shapes.
I read about the Early/Late binding and do not know how to address the problem. How do I change my code to use early binding rather than late binding? Other related questions I've found did not have answers.
To use Late Binding, in the VBA IDE, go into Tools -> References and uncheck the Powerpoint entry. This will remove all knowledge of the Powerpoint object model and constants from the compiler. You will need to change any
Dim
statements that mention a Powerpoint object to simplyObject
, for example:to
If you use any constants, such as
msoTextOrientationHorizontal
in this code:you will need to replace the constant with the numeric value.