[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Cycle through shapes

Posted on 2006-11-09
10
Medium Priority
?
202 Views
Last Modified: 2010-04-30
What's wrong here...?

For Each Shp In PPPres.Slides(1).Shapes
  MsgBox Shp.Name & Shp.Type
Next
0
Comment
Question by:UINVDJM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 35

Accepted Solution

by:
mvidas earned 2000 total points
ID: 17906832
Seems ok.. is it throwing any errors at you?
You could try checking to see if the .shapes.count>0

Since you're running this from excel, have you tried Dim'ming the Shp as Powerpoint.Shape? Maybe you just used Shape and the excel.shape <> powerpoint.shape ?

Just a thought
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 17906896
Nothing in itself. Why do you think that there might be?
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 17906909
Maybe you have 'Option Explicit' missing
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 11

Author Comment

by:UINVDJM
ID: 17906977
Bang on again Matt...

"Shp as Powerpoint.Shape"

I just had "Shape" as you say.
0
 
LVL 35

Expert Comment

by:mvidas
ID: 17907032
Glad to help, again!  Now will you stop asking 500 point questions that only take a minute to answer :)
0
 
LVL 11

Author Comment

by:UINVDJM
ID: 17907052
It says difficult or urgent...I have nothing else to do and to save me being bored I classify them as urgent! :)

Anyway. All done now! No more points today!
0
 
LVL 35

Expert Comment

by:mvidas
ID: 17907114
LOL, we'll be here when you need us :)
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 17907157
It takes more than that to answer if the question is incomplete.
0
 
LVL 11

Author Comment

by:UINVDJM
ID: 17907216
Graham, yes I realise that. I tried to keep the question concise.
If I'd known the answer I probably could have written the question far better. Credit to Matt for second-guessing me.

My sincere apologies.
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 17907645
OK Darren, your graceful apologies certainly accepted on behalf of anyone who would have been confused.

For your guidance, if you get an error message, tell us what it is and where you get it. In your case, I guess it was: "Run time error 438, Property doesn't support this property or method".

In this case, the context would also have been useful: that you were using early binding to connect to PowerPoint in an Excel macro.  Correct that; it was essential.

I see that Matt had already answered several of  questions on your project, so was in a position to realise what was happening.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question