Hi @minal.patil ,
Use this below vba code to sum the numbers,
Function SumTwoNumbers(Numberl As Integer,Number2 As Integer)As Integer
SumTwoNumbers = Numberl+Number2
End Function
Find the below screenshot for your reference,
Hope this may help you