Avatar of hindersaliva
hindersalivaFlag for United Kingdom of Great Britain and Northern Ireland asked on

PowerPoint VBA - simple Shapes question!

Newbie question!

I know
Set osld = ActivePresentation.Slides(1)
osld.Shapes("shape 4").ApplyAnimation

Open in new window


But, how can I avoid having to find the Slide Number?

My presentation will have up to 20 slides, but the Slide Names are unique.
Thanks!
Microsoft PowerPointVBA

Avatar of undefined
Last Comment
John Wilson

8/22/2022 - Mon
SOLUTION
Subodh Tiwari (Neeraj)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Rgonzo1971

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
hindersaliva

Rgonzo1971, ok so I have to loop through the Shapes. I was hoping I can do directly to the Shape (and without having to specify/know which slide it's on). Thank you.

sktneer, I should have said 'without the slide number or name'.
Subodh Tiwari (Neeraj)

Shapes are the slide objects and I don't think that you can reference a shape without referencing either the slide index or slide name,
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes