Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to use a function to get from a sub.
For example: sub x(y as variant) y=activecell.offset(1,0).value+5 end sub Now, I want to get a function Function myfun(z as integer) tmp=x(z) myfun=tmp end function |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Sub x(y As Integer) y = ActiveCell.Offset(1, 0).Value + 5 End Sub Function myfun(z As Integer) As Integer Call x(z) myfun = z End Function -- Jim Cone Portland, Oregon USA . http://www.mediafire.com/PrimitiveSoftware . (Permutations Add-in: with option to highlight valid words) "Subodh" wrote in message ... I want to use a function to get from a sub. For example: sub x(y as variant) y=activecell.offset(1,0).value+5 end sub Now, I want to get a function Function myfun(z as integer) tmp=x(z) myfun=tmp end function |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? | Excel Programming | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Excel - User Defined Function Error: This function takes no argume | Excel Programming | |||
Need to open the Function Arguments window from VBA for a user defined function. | Excel Programming | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions |