Hello,
Thank you for reaching out. I am Harun an Independent Advisor and Microsoft User. I will gladly help you out.
I might have become a bit rusty on this yet I would recommend to define
um and difference as integer or Long before I assign the main value to them and see what will come out.
Dim num1, num2, um As Integer
Dim num1, num2, difference As Integer
or
Dim um As Long
Dim difference As Long
Please feel free to ask for more Information and let me know if this helps.
Sincerely
Independent Advisor
Harun