Summary: Use the Windows PowerShell ISE to use enumeration values.
How can I use the Windows PowerShell ISE to use the standard enumeration types to write a
Word automation script?
Cast the string as a type, and store the returned value in a variable. Each enumeration value
will be available as a static property. Here is an example:
$HeaderFooterIndex = "microsoft.office.interop.word.WdHeaderFooterIndex" -as [type]
$HeaderFooterIndex::wdHeaderFooterFirstPage
0 comments