Tamar,
I was planning on going the route, if only for the purpose of only having to query the application object once. Your reason is more compelling...
Thanks for the heads up,
-steve
>
>While the solution you were offered will work most of the time, it is possible for project hook code to fire when the project _isn't_ the active project. A better solution is to add an oProject property to your projecthook subclass, then put this code in the Init method:
>
>This.oProject = _VFP.ActiveProject
>
>As far as I can tell, at the time the Init fires, the project must be the active project.
>
>Once you have the reference, you can use it in all your projecthook code.
>
>Tamar
Steve Gibson