Optional parameters must specify a default value
Optional parameters must provide default values that can be used if no parameter is supplied by a calling procedure.
Error ID: BC30812
To correct this error
Specify default values for optional parameters; for example:
Sub Proc1(ByVal X As Integer, _ Optional ByVal Y As String = "Default Value") MsgBox("Default argument is: " & Y) End Sub
See Also
Concepts
Procedure Declaration for Visual Basic 6.0 Users