You’ll want to run the application within a debugger to find the line which is causing the error.
Yeah, BrentS is right. More info.
For example I get this message inside VB when I Dim a variable but forget to Set it.
Or in VBS when a variable gets assigned an object and is handled like a simple value.
In general it means there was not a Set theVariable As TheClass sentence.