optional vba code example Example: vba optional Sub MySub(Optional pParam As String = "Default value") '... End Sub