Wish Orphaned Object_Event Subs

RichardN

Well-Known Member
Licensed User
Longtime User
Occasionally I make a boo-boo and describe an Object with one name and then describe the...

Sub Object_Event with a very similar but not identical name....

The result is benign, no errors, it simply does not work and I stare at the screen for some minutes before I recognise that the Sub is not firing at all due to my error.

Sub [Space][Tab] is very useful but we are not all perfect! Is it possible to flag Sub Object_Event where there is no matching Object ???
 

RichardN

Well-Known Member
Licensed User
Longtime User
Erel... I take your point although we do tend to take a lot more care when defining (out of the ordinary) events from class modules. Maybe you might look at it the other way around.... The event subs associated with views are a finite number, they can only be associated with a Global declaration of an item in a designer layout or an Initialize statement. If a Sub xxxx_event can be matched to neither then flag it ????
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…