Hello everyone

,
I need some help. I tried searching google for this, but still no luck, so I thought I'd ask you for help. In the source code, I put in:
Dim a As Integer
Dim b As Integer
a = 500
b = 100
And in a button code, I put in:
a = a-b
But when I try to compile it, it says "a and b not defined." So I think I must need to declare the variable as Public, but I don't know how, so I thought you guys could help me :banana:.
Thanks guys.