Ask a questionAsk a question
 

AnswerEnd statement on the Return

  • Tuesday, October 27, 2009 4:05 PMPhilsophaie Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have a function.  The function has a return.
    Sub sub1
    y=function1(x)
    End Sub

    Function function1(ByVal x as integer)
    data1(1)=1
    data1(2)=3
    data1(3)=8
    Return data1(x)
    end function

    Why is it asking me for an end statement on the Return statement? And how will this work on a spreadsheet?

Answers

All Replies