shanehoey / worddoc

Create Documentation directly from PowerShell. Simple Installation from PowerShell Gallery, and as long as you have MS Word Installed you will be creating .docx, .pdf, .html files in minutes!

Home Page:https://shanehoey.github.io/worddoc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Article to pages on creating advanced documents

shanehoey opened this issue · comments

using get-worddocument and get-wordinstance its possible to edit any property word has.

  1. write a page on how to use these by recording a macro on a document then implementing it

for example

$selection = (Get-WordDocument).application.selection
$selection.range.ListFormat.ApplyBulletDefault()
foreach ($o in $objects) {
    $selection.typetext($o)
    $Selection.TypeParagraph()
}
$selection.range.ListFormat.ApplyBulletDefault()