My understanding of a variable's lifetime is that if it is declared at the module level, it retains its vaue, even after the sub has finished running.
So in my following code, after first running Test1 to the end, if I run Test2, the messagebox shows the value of 10, as expected.
Dim a As...