I have the filepath and filename of several presentations that I'd like to
open programmatically. How would I do that?
Thanks
Steve Rindsberg - 11 Nov 2006 04:14 GMT
> I have the filepath and filename of several presentations that I'd like to
> open programmatically. How would I do that?
Dim sFileName as String
sFileName = "c:\temp\whatever.ppt"
Presentations.Open(sFileName)
Or for all of them at once ...
Dim aFileNames(1 to 10) as String
Dim x as Long
aFileNames(1) = "first filename"
aFileNames(2) = "second filename"
' ... etc
For x = 1 to UBound(aFileNames)
Presentations.Open(aFileNames(x))
Next
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Shyam Pillai - 11 Nov 2006 16:15 GMT
This example illustrates how to do for presentations with PPS extensions but
it's the same for PPT too.
http://skp.mvps.org/ppt00033.htm#VBAPPSOpen

Signature
Regards,
Shyam Pillai
Animation Carbon.
http://www.animationcarbon.com
>I have the filepath and filename of several presentations that I'd like to
> open programmatically. How would I do that?
>
> Thanks