Jason's code is fine. Did you check your global as Jason suggested?
The reason for this error tends to be when you don't have one space only between sub and {
Double check that is the case with your cut and paste.
Also make sure you made no syntax errors when typing/pasting and finally check your error log JIC
The reason for this error tends to be when you don't have one space only between sub and {
Double check that is the case with your cut and paste.
Also make sure you made no syntax errors when typing/pasting and finally check your error log JIC