Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2021, 06:26 PM
hicksi hicksi is offline Replace Embedded Objects with Linked Objects Windows 10 Replace Embedded Objects with Linked Objects Office 2019
Novice
Replace Embedded Objects with Linked Objects
 
Join Date: Sep 2021
Posts: 2
hicksi is on a distinguished road
Default Replace Embedded Objects with Linked Objects

I had a problem in DOCX where I have a number of documents containing the same image, sometimes many times. What I needed to answer is whether my documents CONTAIN the image, or whether all images were under LINK (as desired).
-------------------------------------
NOW. This is EXTREMELY RISKY, as it appears you can destroy your document by playing in this sphere.


  1. Backup your document to somewhere safe
  2. Copy your document, creating '<document> - Copy.docx'
  3. Rename your copy by appending .zip (this asks questions, but making it appear as a ZIP file is what you are doing)
  4. Open the ZIP file using WinRar (other zip utilities may work, but this is my preference)
  5. Select the subfolder within the zip called 'Word'
  6. Select the subfolder within the zip called Media
  7. There you see the list of INCLUDED media files.
And there I found the answers to what I was looking for. I could double-click to see which pictures I had inadvertently included.
MORE:

  1. Go back to the Word subfolder within the zip
  2. Select the _Rels subfolder
  3. Double-click the document.xml.rels file. It should appear in your browser
  4. Search through that for Target="file
  5. That shows all the embedded files.
  6. If you are REALLY-REALLY-REALLY game, open
    document.xml.rels in your favourite text editor, change as needed, and save back into the zip.
  7. Reverse the rename so Windows thinks it's a Word document again.
  8. Hope and Pray that you haven't destroyed your document
MORE:
  1. Within the document.xml.rels file, you find the picture that you want to find. Where is it in the document?
  2. Check the reference in the xml. What you are looking for is the Id. Something like Id="rId18"
  3. Go back to the Word subfolder within the zip
  4. Double-click document.xml (which should open in your favourite browser)
  5. Search for that id rId18
  6. Somewhere near that should be some text that you recognise.
WHAT CAN GO WRONG?
Anything and everything. Like I said, this is EXTREMELY risky.


One that I noticed is that if you replace a picture with one of a different size then it is NOT resized in the document. It is shaped to fill the original space in the document.
BTW that is also true outside this workaround, where if you replace a picture of your wife with one of your children, and they are of a different size or aspect, then the end-result can be NOT what you expected.
Reply With Quote
  #2  
Old 09-28-2021, 06:32 PM
macropod's Avatar
macropod macropod is offline Replace Embedded Objects with Linked Objects Windows 10 Replace Embedded Objects with Linked Objects Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,505
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

One wonders why you'd even bother with such an approach, when it's easy enough to test whether a given image is linked or embedded without it and, if not, replace said image, all without the risk of corrupting the document...

PS: Instead of re-opening old threads (i.e. https://www.msofficeforums.com/word/...rd-2007-a.html) for a substantially different issue, please start your own.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-29-2021, 06:38 AM
hicksi hicksi is offline Replace Embedded Objects with Linked Objects Windows 10 Replace Embedded Objects with Linked Objects Office 2019
Novice
Replace Embedded Objects with Linked Objects
 
Join Date: Sep 2021
Posts: 2
hicksi is on a distinguished road
Default

That approach in your link requires you to convert to pre-XML version of Word. I was fairly sure that my Media was OK (I found 7 Imported in 12 documents), but it was helpful in that I found one that would've failed to update because I had replaced the JPG
Reply With Quote
  #4  
Old 09-29-2021, 07:17 PM
macropod's Avatar
macropod macropod is offline Replace Embedded Objects with Linked Objects Windows 10 Replace Embedded Objects with Linked Objects Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,505
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

No such conversion is required... Testing whether an image is embedded or linked is trivial with VBA. See, for example: https://www.msofficeforums.com/74369-post7.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace Embedded Objects with Linked Objects Macros to move objects prevents moving same objects with arrow keys BruceM Word VBA 1 03-10-2015 08:20 AM
Attaching/Saving Embedded Objects khareem01 Excel Programming 0 12-19-2014 12:33 AM
Replace Embedded Objects with Linked Objects Opening Embedded objects with a hyperlink ml920 Word 1 07-10-2014 09:36 PM
Embedded objects with Password protection Simy Word 6 04-16-2014 04:47 AM
Converting linked objects to embedded in Word 2010 wduvall Word 0 01-15-2014 03:50 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:50 AM.


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