?
Solved

Find matching images in a MS Word document...

Posted on 2013-05-31
5
Medium Priority
?
357 Views
Last Modified: 2013-06-15
Hi All,

I have a document with a bunch of small images often repeated, for example a red check box icon and a green check box icon.  So what I want is write some code to find all the red check boxes and then all the green ones...

Is it possible using VBA to select an image and then search for all matching images?

I'm guessing some approaches might include looking for images with the same height and width, but this might produce false matches.  I don't know if it is possible to take a few random color samples... or look at the (file) size of the image...

I'm not really sure how to get started on this... any help much appreciated!

Cheers,
0
Comment
Question by:DrTribos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 39210302
Hi Steve,
I've just been thinking about this. For new documents to be created in the future it would be possible to add an ID to the image when it is inserted to the document.
0
 
LVL 15

Author Comment

by:DrTribos
ID: 39210307
Thanks Graham,

Rgonzo1971 put me onto that in this question: http://rdsrc.us/NGyRvi

I'm also planning on putting these images inside rich text content controls, and hope users don't monkey with the CC.tag
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 2000 total points
ID: 39210377
Otherwise there is quite a lot of code out there, e.g.

http://www.vbforums.com/showthread.php?476439-VB6-Compare-images-the-fast-way
0
 
LVL 15

Author Comment

by:DrTribos
ID: 39210535
Kewl - I'll have a look at that.  Also need something that is perhaps less exacting in case a user has compressed some images but not others, or changed the shape of some but not others.

Cheers, S
0
 
LVL 15

Author Comment

by:DrTribos
ID: 39212198
Some more info here: http://www.mrexcel.com/ but I'm not sure what they're talking about with openGL...
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question