Insert a picture into PowerPoint from Access using automation

A

Andre

I am creating a PowerPoint presentation from Access 2007.

The problem I have is that when I insert a picture into a picture place
holder in a PowerPoint template, the pictures aspect ratio is not retained or
the picture is not sized to fit in the shape.

The code I use to do this is:
..Shapes.AddPicture(strPicture, msoFalse, msoTrue, .Shapes(intShapeNo).Left,
..Shapes(intShapeNo).Top).LockAspectRatio = True

How can I insert a picture and re-size it to fit the shape and retain the
pictures aspect ratio?
 
C

Cindy M.

Hi =?Utf-8?B?QW5kcmU=?=,
I am creating a PowerPoint presentation from Access 2007.
Mmm. This newsgroup is for WORD VBA. Not PowerPoint (or
Access). Try asking in the one - any only - PowerPoint
newsgroup.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top