MS Word - setting orientation


I’m working on a MS Word script that will create and populate a table. I can’t seem to figure out how to change the page orientation from portrait to landscape. I found a reference to it in the dictionary - it’s a property of page setup but trying variations on:

set orientation of page setup of front document

produced an error.

Does anyone know the correct syntax for this?


from microsoft’s developer download

This example changes the page orientation for the active document.

toggle portrait page setup of active document