Syntax
FileNew [.Template = text] [, .NewTemplate = number]
Remarks
Creates a new document or template based on the template you specify, or runs a wizard. The arguments for the FileNew statement correspond to the options in the New dialog box (File menu).
Argument | Explanation |
.Template | The name of the template or document on which to base the new document or template, or the name of the wizard to run |
.NewTemplate | Specifies whether to create a new document or a new template: 0 (zero) or omitted Create a new document 1 Create a new template |
Examples
These examples create a new document based on a memo template. In Windows, the .DOT filename extension is optional — you can specify either "MEMO1" or "MEMO1.DOT."
FileNew .Template = "MEMO1" 'Windows FileNew .Template = "MEMO 1" 'Macintosh
The following examples create a new template based on the existing Letter3 template:
FileNew .NewTemplate = 1, .Template = "LETTER3.DOT" 'Windows FileNew .NewTemplate = 1, .Template = "LETTER 3" 'Macintosh
The following examples run the Resume wizard:
FileNew .Template = "RESUME.WIZ" 'Windows FileNew .Template = "RESUME WIZARD" 'Macintosh
See Also
FileNewDefault, FileOpen