Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-11-2022, 07:51 PM
macropod's Avatar
macropod macropod is offline Insert Image Reference in Each Deprecated Picture's Place in Multiple Documents Windows 10 Insert Image Reference in Each Deprecated Picture's Place in Multiple Documents Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
 



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
Insert Image Reference in Each Deprecated Picture's Place in Multiple Documents 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
Insert Image Reference in Each Deprecated Picture's Place in Multiple Documents Adding Title Image to Multiple Documents. Agog Word VBA 4 05-03-2018 05:30 AM
Insert Image Reference in Each Deprecated Picture's Place in Multiple Documents Replace footer image in multiple Word documents heyjim Drawing and Graphics 1 08-07-2015 05:23 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft