Option Explicit
Dim a As Integer



Private Sub Command1_Click()
Dim b As Integer
a = 10
b = 20
MsgBox a
MsgBox b

End Sub

Private Sub Command2_Click()
Dim b As Integer
b = 30
MsgBox a
MsgBox b

End Sub

why in sub command2 the msgbox a ,msgbox b repeated again?