Microsoft, PowerPoint, 2003, VBA Macro, VBA

Posted on 2007-08-09
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.
Question by:Rex85
    LVL 21

    Expert Comment

    LVL 21

    Accepted Solution

    BTW, you can use the name property for both shapes and slides when creating them:
    If you want to use an array, the range method is referenced here:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    This is about my first experience with programming Arduino.
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now