Hi Everybody,

at the moment I am writing an AddIn for Visual Basic which allows me to alter the VB-Environment. I've got Access to the Codewindow in Visual Basic and want to check in which line the cursor currently is. Unfortunately VB offers no useful method or property for this problem.
That's why I have to use API. My idea is to search for a Function in the VBA6.DLL.
Is it possible to connect to a undocumentated Function and use it like documentated Windows API calls? Does anybody have a littlebit experience with such problems.
Another way would be to monitor the messages in Visual Basic. Is this possible to? I already used SPY++ to see what messages where sent while moving in the Codewindow, but how can I get access to these messages?

Thanks for your suggestions.

Regards,
Frank