I'm using PowerShell 4.0 to open and edit an MS Word 2013 document, create tables, apply formatting etc then save as. Everything is fine and works okay, but I need to append the text in a Word textbox on the first page and Word treats content inside the box seperately to the main document.
I thought it would be something like:
$doc.Shapes(1).TextFrame.TextRange.Text+= "test"
But apparently [Microsoft.Office.Interop.Word.DocumentClass] does not contain a method named 'Shapes'.
Any ideas? Thanks in advance
Adam