Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
How I can create a function with return argument
I have a macro program numoffday
Sub offdays() li_sunday = .Cells(i, 41).Value int offDays = numoffday(li_sunday) End Sub Please let me know how I can create a function numoffday() with integer return value in Excel macros |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
How I can create a function with return argument
Please tell us in words what you need the function to do
best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "pol" wrote in message ... I have a macro program numoffday Sub offdays() li_sunday = .Cells(i, 41).Value int offDays = numoffday(li_sunday) End Sub Please let me know how I can create a function numoffday() with integer return value in Excel macros |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
How I can create a function with return argument
Generally a function has the following form...
public function numoffday() as long numoffday = 12345 end function I used a long instead of an integer as it is actually more efficient to use a long on a 32 bit machine... -- HTH... Jim Thomlinson "pol" wrote: I have a macro program numoffday Sub offdays() li_sunday = .Cells(i, 41).Value int offDays = numoffday(li_sunday) End Sub Please let me know how I can create a function numoffday() with integer return value in Excel macros |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I get around 30 argument limit of SUM function? | Excel Worksheet Functions | |||
VBA function for "Mean" using Array as argument | Excel Worksheet Functions | |||
Need Function Argument | Excel Worksheet Functions | |||
text as an argument of SUM function | Excel Worksheet Functions | |||
Create a function to return text if two logical functions are true | Excel Worksheet Functions |