G Guest Nov 10, 2006 #1 I have the filepath and filename of several presentations that I'd like to open programmatically. How would I do that? Thanks
I have the filepath and filename of several presentations that I'd like to open programmatically. How would I do that? Thanks
S Steve Rindsberg Nov 11, 2006 #2 Barb Reinhardt said: I have the filepath and filename of several presentations that I'd like to open programmatically. How would I do that? Click to expand... 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
Barb Reinhardt said: I have the filepath and filename of several presentations that I'd like to open programmatically. How would I do that? Click to expand... 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
S Shyam Pillai Nov 11, 2006 #3 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 -- Regards, Shyam Pillai Animation Carbon. http://www.animationcarbon.com
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 -- Regards, Shyam Pillai Animation Carbon. http://www.animationcarbon.com