Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Basic info I have forgotten....
I ould like to write some functions for being used in a worksheet function.
I am forgetting on the syntax of the function block, and how to return the value... Can somebody help? Thanks Bruce |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Basic info I have forgotten....
Bruce,
You assign the return value to the function name. You declare the type of the function and of it's arguments: Public Function TwoTimes(input_num As Double) As Double TwoTimes = input_num * 2 End Function hth, Doug "bruce" wrote in message ... I ould like to write some functions for being used in a worksheet function. I am forgetting on the syntax of the function block, and how to return the value... Can somebody help? Thanks Bruce |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Basic info I have forgotten....
Thanks for the big hammer! DONK! DOI!
Logic and fuctions I seem to recall, just not syntax. Just not fresh anymore... Bruce "Doug Glancy" wrote in message ... Bruce, You assign the return value to the function name. You declare the type of the function and of it's arguments: Public Function TwoTimes(input_num As Double) As Double TwoTimes = input_num * 2 End Function hth, Doug "bruce" wrote in message ... I ould like to write some functions for being used in a worksheet function. I am forgetting on the syntax of the function block, and how to return the value... Can somebody help? Thanks Bruce |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need of a Database for some "basic" info | Excel Discussion (Misc queries) | |||
HELP, I'VE FORGOTTEN | Excel Worksheet Functions | |||
Basic Q: Field/Array info when importing fixed-width text files | Excel Programming | |||
Forgotten Password | Excel Programming |