Can anybody please give me the code for the following;

I want to know if MS Word is running.
I want to know if MS Excel is running.

Thanks,

Graham.