I didn't know this, and this is something I could have used...
" For most of the System errors that the compiler is reporting if you place your cursor over the little glyph at the end of the error squiqqle you get an Error Correction dialogue which offers up the fix to add Global as the very first option."
Cameron McCol