Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-12-2022, 03:19 PM
zanodor zanodor 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
Novice
Insert Image Reference in Each Deprecated Picture's Place in Multiple Documents
 
Join Date: Jun 2022
Posts: 17
zanodor is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
And from where would you get these captions? You can't get them from the images unless they were inserted as links. Embedded images contain no such data.
Yes, I was aware of that. I looked into changing embedded pics into externally linked ones (there was a couple of forum threads dealing with that), but I thought now that I saved out all my images with HTML save (which gives you the formatted rich text plus the images in corresponding folders), I wouldn't need to make that change, only identify where the inline shapes are and mark those places just anyhow (a piece of bold text would do now that I know I will have gotten rid of all the bold by the time I get to this part of the drill).

See, I don't need the pictures, only reference their places within the next (usually in the text I make a comment; 'see attached image'; a cue I could use when I manually go about populating my files with images again), because once I save out as plain text, I say goodbye to all HTML formatting and attached images.
But before the save happens, I would need some "I was here" to help me with re-attaching the pics in the new environment. That's the whole idea. If you save out or render the text somewhere else as HTML and the images are gone or the respective paths have changed, at least you'd get an empty box inline to see this is where a picture used to be. Not with txt (which I needed to reformat for markdown).

(In the meantime, I am looking at other stuff that gives me a headache; I cannot believe automating a change of fonts is so difficult in footnotes; Recorded Macro/Selection method did it once and no more.)
Reply With Quote
  #2  
Old 07-12-2022, 03:27 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

Quote:
Originally Posted by zanodor View Post
I cannot believe automating a change of fonts is so difficult in footnotes; Recorded Macro/Selection method did it once and no more.)
Unless you've used non-standard fonts in your footnotes, all you need to is modify the Footnote Text Style; you don't need to access even a single footnote.

You could also replace the images with code like:
Code:
Sub ReplacePics()
Application.ScreenUpdating = False
Dim i As Long
With ActiveDocument.Range
  For i = .ShapeRange.Count To 1 Step -1
    With .ShapeRange(i)
      If .Type = msoPicture Then .ConvertToInlineShape
    End With
  Next
  For i = .InlineShapes.Count To 1 Step -1
    .InlineShapes(i).Range.Text = "![[image_" & i & "]]"
  Next
End With
Application.ScreenUpdating = False
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 07-12-2022, 05:13 PM
zanodor zanodor 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
Novice
Insert Image Reference in Each Deprecated Picture's Place in Multiple Documents
 
Join Date: Jun 2022
Posts: 17
zanodor is on a distinguished road
Default

On the footnote: it is not the range-wide font style that is the problem. It is the fact that I want the bold chars unbolded and put the text withing double squared brackets, like so: individual bold text > [[^&]].
I can do it one by one using FIND IN but not in bulk method running the main overhaul macro.

On the code you've given me, give me a sec on that one as I am trying to somehow salvage not having to strip all the way do to raw txt after all (problem is my HTML had become very unclean using Word and Pages alternately over the last 6-7 years; different colour codes as well).
I'll get back to you.
Reply With Quote
  #4  
Old 07-12-2022, 06:38 PM
zanodor zanodor 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
Novice
Insert Image Reference in Each Deprecated Picture's Place in Multiple Documents
 
Join Date: Jun 2022
Posts: 17
zanodor is on a distinguished road
Default Code

Ultimately I couldn't make it with HTML. There simply too many inconsistencies with the formatting. Sometimes within one longer word, there are three instances of switches off and on bold text. I don't remember formatting words to bold in three separate instances.

Last edited by zanodor; 07-12-2022 at 09:57 PM.
Reply With Quote
  #5  
Old 07-12-2022, 10:06 PM
zanodor zanodor 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
Novice
Insert Image Reference in Each Deprecated Picture's Place in Multiple Documents
 
Join Date: Jun 2022
Posts: 17
zanodor is on a distinguished road
Default One final thing

EDIT.
Deleted some lines here as I managed to work out the what I had in mind in a mere couple of minutes.
Of course another issue still stands: where did all the GIFs come from during my research? The problem is I cannot convert them (the PNGs are far less, thankfully) to the same number (001, 002, etc.) is it sometimes taken by a JPG that occupied an inline shape further up within the document. Anyway, I'll try to work it out outside of Word.

Cheers again

Z.

Last edited by zanodor; 07-13-2022 at 12:49 AM.
Reply With Quote
Reply

Thread Tools
Display Modes


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 12:28 PM.


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