Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA macro to extract images from word document into powerpoint 1

Status
Not open for further replies.

adfo

Programmer
Oct 23, 2009
30
US
I am preparing a presentation and need to extract eighty(80) images from word file then import them into powerpoint presentation.

I think three macros will be needed in this sequence:

1- A word macro to extract all images from word document, then save them in a folder on the hard drive using a sequential name. (i.e. 1.jpg, 2.jpg, etc.)


2- A powerpoint macro to import all the images from that folder and save them as one image per slide. (i.e. 80 slides will ultimately be created)

3- Powerpoint macro to loop over the slides within 20 seconds or so. Show the first slide, pause for a fraction of a second, show the next slide, pause, etc until the last slide.

I appreciate any help. Any other idea that will lead to the final goal above will also be appreciated.
 
Hi adfo,

You really don't need a macro for the first one - simply save the file as a web page (html format). As part of that process, use Word's Tools to set an appropriate resolution for the images. The images will all be place in a new folder with the same name as the document.

Cheers
Paul Edstein
[MS MVP - Word]
 


Paul,

Great tip! ==> *

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top