Microsoft KB Archive/182621

= PPT98: PpSaveAsDefault Fails to Update File Type after Save =

Article ID: 182621

Article Last Modified on 6/23/2005

-

APPLIES TO


 * Microsoft PowerPoint 98 for Macintosh

-



This article was previously published under Q182621



SYMPTOMS
When you save multiple Microsoft PowerPoint presentations programmatically, using the SaveAs method, you may notice that your presentation is saved in the format defined in the initial call.



CAUSE
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. This problem occurs if you use ppSaveAsDefault as the file format (the second parameter of the SaveAs method) in the call to the SaveAs method. For example, the following code Sub SavePresentations ActivePresentation.SaveAs "MyHD:SaveAsShow", ppSaveAsShow ActivePresentation.SaveAs "MyHD:SaveAsPP8", ppSaveAsDefault End Sub saves the second presentation (SaveAsPP8) as a show, instead of the default type defined in the Save Preferences dialog box.



WORKAROUND
To work around this problem, do not use the ppSaveAsDefault constant as the file format. Instead use the exact constant, the following code illustrates this technique: Sub SavePresentations ActivePresentation.SaveAs "MyHD:SaveAsShow", ppSaveAsShow ActivePresentation.SaveAs "MyHD:SaveAsPP8", ppSaveAsPresentation End Sub This code saves a show and a presentation file.

For a complete list of the the file format constants, click the Office Assistant, type SaveAs, click Search, and then click to view "SaveAs Method."

NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft PowerPoint Visual Basic Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:

179216 OFF98: How to Use the Microsoft Office Installer Program



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words: OFF98 mac_ppt ppt98 ppt_98 powerpoint 8.00 mac_powerpt powermac powerpt

Keywords: kbbug kbnofix kbprogramming kbdtacode kbcode KB182621

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.