Link to home
Start Free TrialLog in
Avatar of DrTribos
DrTribosFlag for Australia

asked on

Find matching images in a MS Word document...

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,
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of DrTribos

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Some more info here: http://www.mrexcel.com/ but I'm not sure what they're talking about with openGL...