T
Ted Kerin
I need to regularly copy/paste records from a proprietary net-based program,
into Word. The records include a mix of text and, at irregular intervals,
images of various sizes and shapes.
The problem is that, although the images are inline, many of them are
oversized, extending well beyond the margins. (I realize this may sound
unusual, with inline images. It might have something to do with the way
that, as I understand it, the original program downloads the images from a
different server than the source of the text, then inserts them into the
records, inline, as links, which then appear as images in the program -- and
in Word -- if the user is online. I can email an example, if this would
help. I usually break the links to save the images into the Word file, so
that the documents can be emailed with images included, but this does not
fix the oversized-image problem.)
I know that there are non-VBA methods to re-size each image. But sometimes
there are hundreds of images in each set of records, so that manual
re-sizing obviously becomes tedious, time-consuming and frustrating.
Is it possible (especially for a VBA-dummy like me) to devise a VBA that
would automatically re-size all of the images in a document, all to a
selected width? (or, to shrink just the oversized images to a selected
maximum width)?
Thanks for any advice.
into Word. The records include a mix of text and, at irregular intervals,
images of various sizes and shapes.
The problem is that, although the images are inline, many of them are
oversized, extending well beyond the margins. (I realize this may sound
unusual, with inline images. It might have something to do with the way
that, as I understand it, the original program downloads the images from a
different server than the source of the text, then inserts them into the
records, inline, as links, which then appear as images in the program -- and
in Word -- if the user is online. I can email an example, if this would
help. I usually break the links to save the images into the Word file, so
that the documents can be emailed with images included, but this does not
fix the oversized-image problem.)
I know that there are non-VBA methods to re-size each image. But sometimes
there are hundreds of images in each set of records, so that manual
re-sizing obviously becomes tedious, time-consuming and frustrating.
Is it possible (especially for a VBA-dummy like me) to devise a VBA that
would automatically re-size all of the images in a document, all to a
selected width? (or, to shrink just the oversized images to a selected
maximum width)?
Thanks for any advice.