Sub t334()
Dim x, y, z As Integer
x = 3
y = 3
z = x + y
MsgBox z
End Sub
The answer to this code is 6

Sub test6()
Dim int1, int2, answer As Integer
int1 = InputBox("please type a whole number")
int2 = InputBox("please type another whole number")
answer = int1 + int2
MsgBox answer
End Sub
If I enter 3 in int1, and 3 in int2 I get 33. Does anyone know why? I would like it to add like in the first example and get 6...