Sign in to follow this  
Followers 0
SiteMaze

Automate Powerpoint

3 posts in this topic

Hello,

How to automate Powerpoint, inserting slides, inserting images, etc.

I know it can be done by VBA.

But how can it be done by AutoIT by calling the Powerpoint com object? I searched high and low on Google and here.

$o_app = ObjCreate ("Powerpoint.Application")
$o_app.Visible = True
    $ppPres = $o_IE.Presentations.Add(True)
    $ppCurrentSlide = $ppPres.Slides.Add(1, ppLayoutBlank)

It does create the object, and the presentation. But not the last line. The VBA version is ActivePresentation.Slides.Add 2, ppLayoutBlank

Share this post


Link to post
Share on other sites



Hello,

How to automate Powerpoint, inserting slides, inserting images, etc.

I know it can be done by VBA.

But how can it be done by AutoIT by calling the Powerpoint com object? I searched high and low on Google and here.

$o_app = ObjCreate ("Powerpoint.Application")
$o_app.Visible = True
    $ppPres = $o_IE.Presentations.Add(True)
    $ppCurrentSlide = $ppPres.Slides.Add(1, ppLayoutBlank)

It does create the object, and the presentation. But not the last line. The VBA version is ActivePresentation.Slides.Add 2, ppLayoutBlank

$ppCurrentSlide = $ppPres.Slides.Add(1,1)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0