As an alternative to looping through each form with an If...Then you could
create a class whose purpose is to raise application wide events and expose
it as a property of a module.
Then each MDI Child that should respond to a given event could subscribe to
that class and react to the event.
--
Ibrahim Malluf
http://www.malluf.com
==============================================
MCS Data Services Code Generator
http://64.78.34.175/mcsnet/DSCG/Announcement.aspx
==============================================
"Merlin" <iM*****@hotmail.com> wrote in message
news:br**********@sparta.btinternet.com...
Hi,
Can someone please help.
I wish to loop through all my MDI children and call a sub procedure I have
created, my problem is that the sub procedure may not exist in all the MDI
children so the program crashes.
What is the best way to tackle this.
Thanks.
Merlin