Cut and Paste Automation in Word?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having to cut hundreds of images out of a Word document and 'paste
special' them back in a different format (jpg). Does any one know of a way to
automate this process for all the images in the document?

I have tried using a Macro but that only seems to work with a single image.
Thanks
 
IainH124A said:
I am having to cut hundreds of images out of a Word document and 'paste
special' them back in a different format (jpg). Does any one know of a way to
automate this process for all the images in the document?

I have tried using a Macro but that only seems to work with a single image.

Practically everyhing you can do to/with one thingy in Word-VBA, you can
also do it to/with a whole set ("collection") as well.

I'm not on a level where I can really suggest code to you, but you need
something along the lines of:

for each myPicture in Active.Documents.<collection>
*do stuff*
next myPicture

One possible pitfall: the collection is not a priori clear (depends on
how the images are inserted, i.e. as inlineshapes or as potentially
floating shapes).

If you have still questions, I suggest you post your current code to
microsoft.public.word.vba.beginners

Greetinx
Robert
 

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

Back
Top