SiteMaze Posted February 1, 2007 Share Posted February 1, 2007 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 Arsenal Football Fan Club in Singapore Link to comment Share on other sites More sharing options...
SiteMaze Posted February 1, 2007 Author Share Posted February 1, 2007 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) Arsenal Football Fan Club in Singapore Link to comment Share on other sites More sharing options...
Shevilie Posted February 1, 2007 Share Posted February 1, 2007 Hava a look in here http://msdn2.microsoft.com/en-us/library/ search for powerpoint Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now