Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / November 2006

Tip: Looking for answers? Try searching our database.

Opening a PowerPoint presentation with VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barb Reinhardt - 10 Nov 2006 15:11 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.