Syntax
FileSummaryInfo [.Title = text] [, .Subject = text] [, .Author = text] [, .Keywords = text] [, .Comments = text] [, .FileName = text] [, .Directory = text] [, .Template = text] [, .CreateDate = text] [, .LastSavedDate = text] [, .LastSavedBy = text] [, .RevisionNumber = text] [, .EditTime = text] [, .LastPrintedDate = text] [, .NumPages = text] [, .NumWords = text] [, .NumChars = text] [, .NumParas = text] [, .NumLines = text] [, .Update] [, .FileSize = text]
Remarks
Sets the summary information and allows access to document statistics for the active document. In Word version 6.0, the arguments for the FileSummaryInfo statement correspond to the options in the Summary Info dialog box (File menu) and the Document Statistics dialog box (Statistics button, Summary Info command). All the arguments corresponding to the options in the Document Statistics dialog box are read-only, with the exception of .EditTime.
In Word version 7.0, this statement is included for backward compatibility. You can use the document property statements and functions to set or access summary information for the active document. For more information, see GetDocumentProperty() and SetDocumentProperty.
Argument | Explanation | |
.Title | The title of the document | |
.Subject | The subject of the document | |
.Author | The author of the document | |
.Keywords | The keywords used to identify the document |
Argument | Explanation | |
.Comments | The comments about the document | |
.FileName | When using FileSummaryInfo as a statement, the name of the file to make summary information changes to (the file must be open); when returning information from a FileSummaryInfo dialog record, the filename of the active document (path not included) | |
.Directory | The document's location (read-only) | |
.Template | The document template (read-only) | |
.CreateDate | The creation date (read-only) | |
.LastSavedDate | The date the document was last saved (read-only) | |
.LastSavedBy | The name of the person last saving the document (read-only) | |
.RevisionNumber | The number of times the document has been saved (read-only) | |
.EditTime | The total time the document has been open, in minutes | |
.LastPrintedDate | The date the document was last printed (read-only) | |
.NumPages | The number of pages (read-only) | |
.NumWords | The number of words (read-only) | |
.NumChars | The number of characters (read-only) | |
.NumParas | The number of paragraphs (read-only) | |
.NumLines | The number of lines (read-only) | |
.Update | Updates the summary information | |
.FileSize | The size of the document in the form "36,352 Bytes" (read-only) |
Note
To ensure you get the most up-to-date information when using a FileSummaryInfo dialog record to return summary information or document statistics, include the instruction FileSummaryInfo .Update before defining the dialog record.
Examples
This example sets the title of the active document:
FileSummaryInfo .Title = "Exploration of the Upper Amazon."
The following example defines the variable author$ as the author of the active document.
Dim dlg As FileSummaryInfo GetCurValues dlg author$ = dlg.Author
See Also
DocumentStatistics