Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powerpoint add slide

Status
Not open for further replies.

rj771972

Programmer
May 17, 2013
10
0
1
US
Hello,
I notice that when I use the code below, a slide is added BEFORE the current slide rather than AFTER. Not sure why


Dim oPPt
Dim oPPs
Dim ObjSlide
Dim ObjShape
Dim objWnd
Dim ObjImage

Const ppLayoutText = 12

Set oPPt = CreateObject("PowerPoint.Application")

Set oPPs = oPPt.Presentations.Open("c:\tmp\test.pptx")

oPPt.Visible = True

Set objSlide = oPPs.Slides.Add _
(1, ppLayoutText)
 

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein
AD1D550E-FCB5-4AB6-A3C8-1F86CACE2554_ne1bcz.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top