?
Solved

Microsoft, PowerPoint, 2003, VBA Macro, VBA

Posted on 2007-08-09
2
Medium Priority
?
1,398 Views
Last Modified: 2013-11-26
I have a VBA macro that inserts a set of images (EMFs) into a PowerPoint in a certain order and arranges and sizes them appropriately. The names of the images stay the same, but they are updated weekly, so the content changes. Also, the number and sequence of the slides can change.

I want to name the image objects specifically as they are inserted, so that they can be manipulated by object name in other sections of code. I also need to use Absolute Slide IDs since the order can change.

I have seen somehwere how to name the image object as it is inserted, but I can't seem to find it now when I need it.

Ideally, since the list of image file names is constant, (relatively) I would like to make that an array, as I would to the names of the chart objects as they are inserted.

Can anyone help me on this? I would appreicate it. Thank you.
0
Comment
Question by:Rex85
  • 2
2 Comments
 
LVL 21

Expert Comment

by:GlennaShaw
ID: 19667991
0
 
LVL 21

Accepted Solution

by:
GlennaShaw earned 1500 total points
ID: 19671654
BTW, you can use the name property for both shapes and slides when creating them:
http://msdn2.microsoft.com/en-us/library/aa167075(office.10).aspx
http://msdn2.microsoft.com/en-us/library/aa141428(office.10).aspx
If you want to use an array, the range method is referenced here:
http://msdn2.microsoft.com/en-us/library/aa212314(office.11).aspx
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

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

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Today, unlike web development, the mobile landscape is complex enough for a software engineer and Android is posing more challenging environment thanks to its fragmentation issues on hardware and software fronts.
The viewer will learn how to edit animations within the presentation, incorporate sound, and set everything up with timing.
Loops Section Overview

593 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