Find and replace images thru automation

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

Guest

I am trying to change and add images to Word documents thru automation.

Find and replace works great for words, how do I do the same thing for images.

How do I tell word where to load the image from using VB 6.

Can the size of the image be controlled by setting up a container of some
kind in Word, or does the size need to be set in the image itself prior to
being loaded or atrtached to the word document?

Thank you
 
You can find some images - and, I suppose, replace them with the contents of
the clipboard - but that's as far as you can go with Find and Replace.

All in all you would be better working with the documents Shapes and
InLineShapes collections which will give you access to all their properties.
You can check the existing size, and size a replacement to fit or whatever
you want to do. How you actually identify the images depends on your
document; Word has no inbuilt way of telling you what they are.
 

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