how about using doevents in for loop? This will allow other programs to run.