Hi,
I was at MSDN site reading about Runtime Error 91 because I am experiencing one and just couldn't see the obvious:
Here is my code where I am getting the error:
Private ClassInstance as ClassModule
Sub()
'codes....
ReturnValue = ClassInstance.ClassModuleFunction(ParameterA, ParameterB)
'codes....
End Sub
That code above throws me the Runtime 91 error.
Private ClassInstance as New ClassModule
Sub()
'codes....
ReturnValue = ClassInstance.ClassModuleFunction(ParameterA, ParameterB)
'codes....
End Sub
It took me some time to figure out my self what my 'miss' was, and I felt stupid after I did.
I wanted to share that experience at the link I provided but there is no facility for that in there, so instead I posted this thread to share to anyone who might stumble upon my post!
Bookmarks