Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / October 2006

Tip: Looking for answers? Try searching our database.

A Preview of A shape

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gil_H - 08 Oct 2006 18:13 GMT
Hi Ev1,
I'm making a macro that presents a form with a list box that shows all
the shapes on the current slide.
I would like to show the Shape image as well.
This is the Code:
With ActivePresentation.Slides(1)
       For Each S In MyShapes
           UserForm1.ListBox1.AddItem (MyShapes(i).Name)
           i = i + 1
       Next
End With
The Question is, how do i get the Shape's Preview? does it available
for me to load it as an image?

Thanx,
Gil H.
Chirag - 08 Oct 2006 07:32 GMT
Shapes have a hidden method called Export() that allows you to export the
shape as an image. Use it as follows for exporting as JPEG:
Shp.Export "C:\shp.jpg", ppShapeFormatJPG

- Chirag

 PowerShow - View multiple PowerPoint slide shows simultaneously
 http://officeone.mvps.org/powershow/powershow.html

> Hi Ev1,
> I'm making a macro that presents a form with a list box that shows all
[quoted text clipped - 12 lines]
> Thanx,
> Gil H.
Gil_H - 08 Oct 2006 21:40 GMT
Thanks, that solution can do.
But is there a way to Export / Save those images in an imagelist
directly? it will save me to copy them to c:\ folder...

Thanx,
Gil H
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.