PDA

View Full Version : compare pictures



booyw
01-23-2019, 09:49 AM
good day

I have sheet 2 with a screen shot and then sheet 3 with a screen shot
sheet 3 screen shot might be the same as sheet 2 or different
is there a vba that can compare the 2 sheets's screen shots and on sheet 1 confirm if they are the same or not

Logit
01-23-2019, 11:25 AM
.
VBA is able to tell you if they are the same size, the same format (jpg, gif, etc.) ... but that is about all.

大灰狼1976
01-23-2019, 08:08 PM
Hi booyw! What are the criteria for judging the same?

大灰狼1976
01-25-2019, 09:38 PM
one idea. read binary data through clipboard, then confirm whether the binary data are the same.

JimmyTheHand
01-25-2019, 11:39 PM
good day

I have sheet 2 with a screen shot and then sheet 3 with a screen shot
sheet 3 screen shot might be the same as sheet 2 or different
is there a vba that can compare the 2 sheets's screen shots and on sheet 1 confirm if they are the same or not

Not sure what you mean. I can interpret your words in 2 ways:

You want to compare the contents of 2 worksheets, called 'Sheet2' and 'Sheet3', cell by cell. For the purpose of comparison you made a screenshot of both sheets, and now these screenshots are stored in jpg files somewhere on your hard drive.
You have images inserted into both Sheet2 and Sheet3. These images happen to be screenshots, but it's irrelevant, they could be photos or whatever else, the only important thing now is that they are images. And you want to compare these images by content.


Is any of the above interpretations correct?