Excel VBA code to set the zoom in newly created PowerPoint Presentation.

I need something that will set the zoom of each slide to 120. Here are the lines that create the presentation and then each slide as it is added in the overall loop:
Set myPresentation = PowerPointApp.Presentations.Add
Set mySlide = myPresentation.Slides.Add(myPresentation.Slides.Count + 1, ppLayoutBlank)

Open in new window


Thanks,
John
LVL 1
John CarneyReliability Business Tools Analyst IIAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
ActiveWindow.View.Zoom = 120
Wayne Taylor (webtubbs)Commented:
Hi John,

I'm pretty sure you can't zoom individual slides, but you can adjust the zoom of the document window instead...

    myPresentation.Windows(1).View.Zoom = 120

Wayne

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John CarneyReliability Business Tools Analyst IIAuthor Commented:
Hey Wayne, how are you? Haven't heard from you in a while. Thanks for the answer, works perfectly!

John
John CarneyReliability Business Tools Analyst IIAuthor Commented:
Crystal, I had tried your answer earlier and thought for sure it would work but it didn't. Thank you for posting.

John
Wayne Taylor (webtubbs)Commented:
I'm well, John. And yourself?

I took a break from EE for a few years, but I pop back in from time to time now. Sadly it's nothing like it used to be, with all the old regulars rarely posting now.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.