Yes. A function allows the main Sub to appear simpler and easier to follow. Ideally Functions reduce the total amount of code required and allow for more easy re-use on different projects.
You could put that code inside the Sub if you wanted to.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|