From what I have been able to gather, the 400 is a generic illegal operation code that could apply to just about anything. When you say
quote:When I select it in References in VB, I get a Visual Basic error
I'm not quite sure what you mean exactly. Do you mean that when you run the code you get the error?
What happens when you step through the code? Does that line of code point you to something that you might be overlooking (malformed function, invalid offset, etc)? You might want to paste the code here - would make it easier to visualize.
I sympathize on the stupid error message. You would think there would at least be a straightforward listing of what they mean in the VBA help but alas, such is not the case.