I added msgbox calls in as you suggested to try and narrow down where the problem is occurring but when I add them in the program does not run the same. For some reason it gets stuck in the do loop and does not increment to the next channel, it keeps trying to filter the first channel no matter how many times I run through the loop.
When I run the script in the script editor, it runs completely fine. The issue doesn?t crop up until I run it in the normal window (not script editor). So I have not been able to narrow it down to much. Plus I get varying errors, I ran it 4 times each with different results. 1 st time: crash immediately, no channels filtered, and I got the Access violation that I mentioned earlier, 2nd time: two channels filtered then I get the following message: Exception EAccessViolation in Modul GfSBASE.DLL bei 00002034. Zugriffsverletzung bei Adresse 67D12034 in Modul ?GfSBASE.DLL?. Schreiben von Adresse 000000011. When I click the OK button the following message appears: the instruction at ?0x0136fa10? referenced memory at ?0x00000003?. The memory could not be?written?. Click on OK to terminate the program. 3rd time; the program runs and fininshes normally, no problems at all. 4 th time: the program filters two of three channels and then stops, the menu system does not pop back up as it should and I have to use the task manager to stop the program.