Invalid optional parameter type

   

Not all Visual Basic types are permitted for Optional parameters. This error has the following causes and solutions:

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).