vba - Compile error Expected: end of statment -


i've got code works fine, wanted add it. made 1 of functions return value. but, no matter return, "compile error expected: end of statment" msgbox appearing.

i did code, , still error. can please explain this?

public function addresses() integer  return 1  end function  

duplicate of this post, need assign function name value, example:

addresses = 1 

instead of

return 1 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -