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

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World