in reply to Re: Win32::OLE->GetObject Fails on MS Word Document
in thread Win32::OLE->GetObject Fails on MS Word Document

Thank you davies. That works fine. Leaves me wondering what (if anything) GetObject is good for.

"It's not how hard you work, it's how much you get done."

  • Comment on Re^2: Win32::OLE->GetObject Fails on MS Word Document

Replies are listed 'Best First'.
Re^3: Win32::OLE->GetObject Fails on MS Word Document
by davies (Monsignor) on Dec 16, 2020 at 22:51 UTC

    If you really need to access a running instance, that's what GetObject does. It's very rare, but can be useful if you are doing weird things and can end up with invisible instances that you want to close down elegantly rather than through the task manager. It can also be useful if you need to do some manual work first and then let the code take over.

    Regards,

    John Davies