| | |
| | Documents(“Example.doc”).Activate |
| | |
| | |
| | |
| | Documents.Add Template:=”C:\Forms\FormDoc.doc”, _ |
| | |
| | Documents(“Example.doc”).Close |
| | Documents(“Example.doc”).Close SaveChanges:=wdSaveChanges |
| | Documents(“Example.doc”).Close SaveChanges:=wdDoNotSaveChanges |
| | Documents(“Example.doc”).Close SaveChanges:=wdPromptToSaveChanges |
| | Documents(“Example.doc”).SaveAs (“C:\Example\Example.doc”) |
| | Documents(“Example.doc”).Save |
| | Documents(“Example.doc”).Protect Password:=”password” |
| | Documents(“Example.doc”).UnProtect Password:=”password” |
| | Dim varNumberPages as Variant |
| | |
| | ActiveDocument.Content.Information(wdActiveEndAdjustedPageNumber) |
| | Documents(“Example.doc”).Print |