Saving a shape (picture) in a gif format

G

Gustavo

I want to create a macro that will save an image on my
slide in a GIF format. The option to Save as Picture is
available in the shortcut menu only. When I record my
macro it creates a statement that saves the entire slide
as a GIF, not just the selected object.

(Eg.ActivePresentation.SaveAs FileName:="C:\Practice
Data\Picture1.gif", FileFormat:=ppSaveAsGIF,
EmbedTrueTypeFonts:=msoFalse)

Does anyone know how I can modify this to save the shape
only?
 
S

Shyam Pillai

Gustavo,
Use this code:

Call
ActiveWindow.Selection.ShapeRange(1).Export("C:\Workarea\filename.gif",ppSha
peFormatGIF)
 

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