Detecting PowerPont 95 format with VBA

A

Alan

Is there a way using VBA to detect that a file is in PowerPoint
95 format?

I want to automatically convert a file if this is detected.

Thanks, Alan
 
S

Steve Rindsberg

Is there a way using VBA to detect that a file is in PowerPoint
95 format?

I want to automatically convert a file if this is detected.

I don't think so, other than trying to open it in 2007 and trapping the error
that results.
 
A

Alan

Well, that sucks. A version of PowerPoint earlier than 2003 SP3 is
required to batch convert them using VBA, as they have to be opened.
Opening PPT 95 files on a later version does me no good, because I
cannot convert them either.
 
A

Alan

I`m not quite sure how to use it yet and don`t know if it even
applies in PowerPoint, but . . . What information does the built-in
document property "Format" provide?

Thanks, Alan
 
S

Steve Rindsberg

Well, that sucks. A version of PowerPoint earlier than 2003 SP3 is
required to batch convert them using VBA, as they have to be opened.
Opening PPT 95 files on a later version does me no good, because I
cannot convert them either.

How about this instead:

Using 2003 or earlier, open each file then save it back to the original
filename as a PPT.

You'll then be opening and saving post-95 as-is, no changes, and converting 95
files to 97-2003 format.
 
S

Steve Rindsberg

I`m not quite sure how to use it yet and don`t know if it even
applies in PowerPoint, but . . . What information does the built-in
document property "Format" provide?

To use it:

Sub ShowFormat()
With ActivePresentation
Debug.Print .BuiltInDocumentProperties("Format")
End With
End Sub

But it just tells you the page format ... e.g. On Screen Show, 35mm Slide and
so on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top