Word-Objekte
Objekt | Präfix | Deklaration | Beispiel |
---|---|---|---|
Absatz | para | Dim para As Word.Paragraph | Set para = doc.Paragraphs(1) |
Add-in | addin | Dim addin As Word.addin | Set addin = app.AddIns(1) |
Applikation | app | Dim app As Word.Application | |
Bereich | rng | Dim rnd As Word.Range | Set rng = doc.Range |
Dialogfeld | dlg | Dim dlg As Word.Dialog | Set dlg = app.Dialogs(750) |
Dokument | doc | Dim doc As Word.Document | Set doc = Documents.Add |
Dokumenteigenschaft | prop | Dim prop As Office.DocumentProperty | Set prop = doc.BuiltInDocumentProperties(1) |
Dokumentvariable | vrbl | Dim vrbl As Word.Variable | set vrbl = doc.Variables(1) |
Dokumentvorlage | tmpl | Dim tmpl As Word.Template | Set tmpl = doc.AttachedTemplate |
Feld | fld | Dim fld As Word.Field | Set fld = doc.Fields(1) |
Formularfeld | ffld | Dim ffld As Word.FormField | set ffld = doc.FormFields(1) |
Fußzeile ... |
Get Microsoft Word-Programmierung - Das Handbuch now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.