The following is a very simple Microsoft Word macro (Visual Basic) that uses the DDE interface to send API commands to PhotoModeler.