akhendre88
Board Regular
- Joined
- Sep 17, 2015
- Messages
- 76
Hello,
I am writing a function which call the sub procedure to calculate the area. Below is code.
It is working fine. How can I do it if I want to return a result in any cell instead of MsgBox.
Thank you.
I am writing a function which call the sub procedure to calculate the area. Below is code.
Code:
Function GET_AREA(Length As Double, Width As Variant)
area Length, Width
End Function
Sub area(l As Double, w As Variant)
MsgBox l * w
End Sub
It is working fine. How can I do it if I want to return a result in any cell instead of MsgBox.
Thank you.