I'm trying to use VBA for Excel to compare image files and write the comparison response back to an Excel cell.
The relevant piece of code here is:
I know the code works, as I've tested it with the addition of an output comparison file paramter which worked fine, giving an output file. It also works file in the command line prompt, giving a compaison value.retcode = img.Compare("verbose", "-metric", "rmse", first_file , second_file, "null:")
However, the problem is that the return code retcode is coming back as blank. In other words I'm capturing the error code, which is blank as the command works ! ! ! !
What I want is not the error return code, but the comparison value returned from the tool - the value you get when you run it from the command line.
Thanks in advance