Hello everyone! I am relatively inexperienced when it comes to writing macros and was able to build something using the record function to analyse images for contaminants. I started the process of sharing it with my team members so that they can also run the macro and perform this test, but I am having issues with the macro when it is run on a new computer. For some reason, the color threshold is not adjusting when the macro is run so instead of a white image with a bunch of red spots, I get a black image instead which makes it hard to see all of the other contaminants that were present, but didn’t qualify with a large enough area to be of a concern. I tried running the process manually, and experienced no issues what-so-ever. I even tried building the macro from scratch on their computer only to experience the same issue once it was run on its own (even through the result obtained while using the record function came out right, and I have never experienced this problem myself when I run the same macro on my computer). The first image below is what I am looking to obtain-
The result I get from my co-workers computer is the following-
I have layed out the macros side-by-side to show for comparison (the one on the left is the macro I have used, the one on the right is the one that my co-worker used.
The only thing I could reason is that something is going wrong with the color threshold function when the macro is run, but what exactly is completely beyond me. I would really like to share this capability with the other group members, but until I am able to figure out why I can’t recreate the first result on other computers, I am out of luck with expediting the process for other group members. Any insight/help would be greatly appreciated!