Common code for Excel VBA programming