Macro: Select Image "X"

I can get my Macro to run perfectly only if I use the image I made the macro with, “Project_M40 TA 004.tif”

How can I get this macro to work with all my images ending in the color of the split channel without having to make a new program for each new project image?

what command do I need to universalize my code to all titles ending in (red) or (green) or (blue)?

The left picture is what I want the code to do, the right is a perfectly functional code that will only work with the single image:“Project_M40 TA 004.tif”


Hi Andrew,

Welcome to the forum!

I’m afraid I can’t access whatever you tried to upload. Maybe you could try again? Or even better just put your code directly into your reply.