Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim b As Long
Dim a As Long
b = Denom.Text
a = Num.text
End Sub
Sub gcd
Dim temp As Long
Do While b > 0
temp = b
b = a Mod b
a = temp
Loop
gcd = a
End Sub