![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#2
|
||||
|
||||
|
Your ReferenceMyImages sub only loops through InlineShapes. But you ignore what the loop is doing and use both:
• PicPath = Selection.ShapeRange(1).LinkFormat.SourceFullName (which is invalid for inlineshapes); and • PicPath = Selection.InlineShapes(1).LinkFormat.SourceFullNam e (which is only valid for images inserted as links), and both reference Selection, which isn't necessarily related to any image in the document - what might be selected when the macro is run might just be some text.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VBA Insert Image(logo) into header for multiple Word Docs | Axis | Word VBA | 4 | 02-09-2022 10:34 PM |
Changing footer image in Multiple word documents
|
killabyte | Word VBA | 2 | 09-23-2020 05:49 AM |
| How to place an image placeholder that scales the image to the full frame size in a template | Cube | Word | 5 | 07-05-2020 08:27 AM |
Adding Title Image to Multiple Documents.
|
Agog | Word VBA | 4 | 05-03-2018 05:30 AM |
Replace footer image in multiple Word documents
|
heyjim | Drawing and Graphics | 1 | 08-07-2015 05:23 PM |