Quote:
Originally Posted by macropod
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.
|
I borrowed those lines from a forum thread as you might have guessed. I had probably used your codes before in my migration project here and there and sometimes everything just worked (changing a bit of code to suit my needs). So this kind of hit or miss business is like this. Like trying to speak a foreign language with no grammar but some words picked up here and there. Although I have to say I am beginning to like VB/VBA. Reminds me of my BASIC days on C64. The last programming language I used was Pascal...
I am now thinking about inserting captions and looking around the net for changing those text parameters into hyperlinks which will be internal relative paths in the program I am going to be using.
I am also looking into how to go about using file and folder names and appending those. But everything is being made more difficult when you try to run macros on 14000 files and all files have different amount of images in them, if any.
I have a feeling I will have to resort to having just some placeholders or reminders to mark the positions of where the images used to be in the document.
Can you help me with that?
So I would need "For Each Image" (position) let's say a highlighted text or a bold green text to bring my attention to where I need to put some elbow grease in it when going through my documents. (With a macro I would change that bold green to something the markdown program will be able to interpret.)
In exchange I could tell you how "macro" and "meagre" are semanto-logically related. Even "Maker" as Creator.
Cheers,
Z.