
Current Line Number in an Access Module
How do you determine the current line number (where the cursor is located)
in an Access Module? I have a procedure that inserts a standard
documentation header for a sub or function, but don't know how to have it
insert at the current cursor position. VBA provides the InsertLines method
of the the Module object, but you must provide the line number. I have been
unable to find any built-in function or method that provides this info. I
also tried using SendKeys, but Sendkeys behavior is flakey.
Thanks in advance for your help.