View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Adrian Caspersz Adrian Caspersz is offline
external usenet poster
 
Posts: 19
Default Early exit from function?

On 15/10/2019 08:42, RG III wrote:
Suppose I have the following function:

'------------------------------------
Function foo(x as Integer) as Integer

If (x < 1) Then
foo = 1 ' Exit point?


Exit Function

https://docs.microsoft.com/en-us/dot...exit-statement

--
Adrian C