Well, you could wrap the call to open the form in a try/catch block, and
see what exception is thrown (if any).

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Nicholas
>
[quoted text clipped - 5 lines]
>
> All rather confusing...
pinkfloydfan - 28 Jan 2008 20:02 GMT
Brilliant!
The problem was that I had the following line:
System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false)
and you can't use this if you are calling the macro from another
application. Ah well, that will teach me to just lift code I don't
fully understand.
Thanks