SYMPTOMS
When using the AddPicture method to add a picture to a Microsoft PowerPoint
slide, you receive the following error message:
Run-time error '-2147188160 (80048240)':
Shapes (unknown member): Out of memory error.
RESOLUTION
To prevent the run-time error message, choose either of the following
methods:
Method 1. Link the picture and save the link information
To link the picture and save the link information, set the LinkToFile
parameter to msoTrue and the SaveWithDocument parameter to msoFalse.
Method 2. Embed the picture and save the picture with the presentation
To embed the picture and save the embedded picture with the presentation,
set the LinkToFile parameter to msoFalse and the SaveWithDocument parameter
to msoTrue.
For more information about the AddPicture method, click the Office
Assistant, type
AddPicture click Search, and then click to view
"AddPictureMethod."
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If PowerPoint Help is not installed on your computer,
please see the following article in the Microsoft Knowledge Base:
120802 Office: How to Add/Remove a Single Office Program or Component
REFERENCES
For more information about getting help with Visual Basic for Applications,
please see the following article in the Microsoft Knowledge Base:
163435 VBA: Programming Resources for Visual Basic for Applications