I need to know how to use sort of a loop function if possible so that I can export specific data that pertains to one criteria , then loop to make sure that there are no more criteria that are different.
For example, I need to export data that contain a certain filename, then loop back through to see if any data remain that contain another, different filename. If so, export those also.

Thanks in advance.