Need help in writing excel macro which takes two different numbers from the user via a popup box and provides the sum of these two numbers in one cell..
Sub DoMath()
Dim FirstNum As Double
Dim SecNum As Double
FirstNum = InputBox("What is the first number?")
SecNum = InputBox("What is the second number?")
'Output value to A2
Range("A2").Value = FirstNum + SecNum
End Sub