10-23-2008, 06:25 PM
Hey guys,
Dont break your head for small things. Just go for basic programmings for w3schools or any other E-Books.
Here i am giving the example required for you:
Let me know if you need any clarification here.
Thanks & Regards,
Uday.
Dont break your head for small things. Just go for basic programmings for w3schools or any other E-Books.
Here i am giving the example required for you:
Code:
a=10
b=5
sumOfNumbers=sum(a,b) 'Here i am calling the sum function
MsgBox(sumOfNumbers)
Function sum(var1,var2)
Dim temp
temp=var1+var2
sum=temp 'Here i am returning the value to the called function
End function
Let me know if you need any clarification here.
Thanks & Regards,
Uday.