Hi Rahul,
The Macro for Spread Function is as follows:
Sub spread()
Dim EPM As New EPMAddInAutomation
EPM.spread
End Sub
Regarding 2nd point, do you want the values to be distributed based on some criteria? This needs to be checked using excel functionality and integrating the same with Spread Macro.
Hope it helps,
Regards,
Astha