Good suggestion, I will change it to a subroutine format.
In reply to Re^2: Code Optimization by azheid in thread Code Optimization by azheid