When I run the following macro:
Dim num As Integer
num = 123
The first msgbox displays 2 and the second msgbox displays 3. If I remove the first line, Dim i as integer, both msgboxs display 3. Can anyone explain why? Thank you.