Jump to content

Recommended Posts

Posted

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

Posted

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)

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
×
×
  • Create New...