It's missing an 'End Function' after the final 'Next'.
Edit:
and what's with the 'Original Code by Ross C - Modified code by Ross C'?
How about adding 'designed and implemented by Ross C'? - that's what 'John Carmack' does.
Edit:
and what's with the 'Original Code by Ross C - Modified code by Ross C'?
How about adding 'designed and implemented by Ross C'? - that's what 'John Carmack' does.