I have a doevents command right before the last line of a loop in my program and i keep getting an error, 'out of stack space.' Is there another function like DoEvents that can keep the program from freezing up while a long loop is executing and not get the out of stack space error?