PPT98: PpSaveAsDefault Fails to Update File Type after Save (182621)
The information in this article applies to:
- Microsoft PowerPoint 98 Macintosh Edition
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.
CAUSEMicrosoft 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.
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbbug kbcode kbdtacode kbnofix kbProgramming KB182621 |
---|
|