Building for Windows on a Mac : WordApplication problem

If I try to build a Windows EXE on my Mac, code which is Windows specific

#if TargetWin32 then dim wrdApplication As WordApplication dim docDocument As WordDocument dim rowInvoiceRow As WordRow dim tblWordTable As WordTable dim intRowCounter As Integer

generates an error ‘cant find a type with this name’

What do I need on the Mac to get this to compile?

You have to put the MSOfficeAutomation.rbx plugin in the plugin folder.

You can find MSOfficeAutomation.rbx in the installation folder Extras/Office Automation/

Of course.
Thanks!