Type mismatch (Visual Basic)
Updated: July 20, 2015
For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.
You attempted to convert a value to another type in a way that is not valid.
Check the assignment to make sure it is valid.
Make sure you did not pass an object to a procedure that expects a single property or value.
Make sure you did not use a module or project name where an expression was expected.