PPT: Run-Time Error Using the AddPicture MethodLast reviewed: March 10, 1998Article ID: Q163146 |
The information in this article applies to:
SYMPTOMSWhen 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. CAUSEThis error message occurs when you pass an invalid parameter to the AddPicture method. For example, this error occurs when the LinkToFile parameter is set to msoFalse (or has an integer value of 0) and the SaveWithDocument parameter is set to msoFalse. These settings instruct PowerPoint to embed the picture in the presentation, but to save the link information. An embedded picture does not contain link information.
RESOLUTIONTo prevent the run-time error message, choose either of the following methods:
Method 1. Link the picture and save the link informationTo 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 presentationTo 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:
ARTICLE-ID: Q120802 TITLE : Office: How to Add/Remove a Single Office Program or Component REFERENCESFor more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q163435 TITLE : VBA: Programming Resources for Visual Basic for Applications |
Additional query words: 8.00 ppt8 vba vbe macppt mac_ppt ppt98 powerpt
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |