![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
If the document and images will be kept in the same folder, here's a way to do it that: (a) doesn't require a macro; (b) updates the document just by changing the image in the folder; and (c) keeps the document's file size to a minimum.
1. Press Alt-F9 to toggle Word's field code display 'on'. 2. Press Ctrl-F9 twice to create a pair of nested fields wherever you want the first image to go. They'll look like { { } }. 3. Fill in the fields, so you end up with {INCLUDEPICTURE "{FILENAME \p}/../Image1.png"}. Change the 'png' to whatever extension your image has. 4. Copy the field code from step 3 and paste it to wherever you want the other images to appear, changing the image # in each field to match. 5. Save the document to the folder the images are stored in. 6. Press Alt-F9 to toggle Word's field code display 'off'. 7. Press Ctrl-A, F9 to update the display. If you change one of the images in the folder, then press Ctrl-A, F9 to update the display, Word will replace the image in the document. If you copy the document to another folder with its own set of numbered images (same image names & extensions) and press Ctrl-A, F9 to update the display, Word will replace all the images in the document. Let me know if that suits your needs; otherwise I can write a macro.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#2
|
|||
|
|||
|
Awesome! Let me try this out and get back to you.
One thing though: the source images are virtually always the wrong size for the table (too big, generally). Does this method allow me to shrink each image (either by the width or the height, to retain the aspect ratio) so they always fit correctly? |
|
| Tags |
| image insert |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Complex VBA Code to Resize Alternating Images at the End of a Mail Merge
|
macropodjr | Mail Merge | 5 | 09-11-2017 11:10 AM |
| Add pictures in specific parts of the document and resize them automatically - MS Word 2013 | Andrew_G93 | Word | 6 | 11-10-2015 09:00 AM |
Help Creating Macro to Crop/Resize Images
|
ineedmacrohelp | Word VBA | 1 | 08-06-2015 06:46 AM |
Help with VBA to resize images
|
Yuffster | Word VBA | 2 | 01-30-2015 06:05 AM |
WORD Macro - import picture - resize - position - page break - loop
|
Nano07 | Word VBA | 2 | 11-02-2011 05:14 AM |