Invoke VBA: Cannot run the macro 'SumTwoNumbers'. The macro may not be available in this workbook or all macros may be disabled

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 :slight_smile:

7 Likes