View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Subodh Subodh is offline
external usenet poster
 
Posts: 99
Default Using a sub within a function

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