'End Function' must be preceded by a matching 'Function'

An End Function statement appears in your code with no matching Function procedure definition preceding it.

Error ID: BC30430

To correct this error

  1. Remove the End Function statement if it is redundant.

  2. Supply the missing Function procedure if one is missing.

  3. Move the End Function to the appropriate place in the code.

See Also

Concepts

Function Procedures

Reference

End (Visual Basic)