Microsoft Word Suite
240
Example
The following example uses the CreateLetterContent command to create a new letter content object
in the active document and then uses this object with the RunLetterWizard command.
set myLetter to create letter content active document ¬
date format "April 14, 1912" ¬
include header footer false ¬
page design "" ¬
letter style full block ¬
letterhead
true
¬
letterhead location letter top ¬
letterhead size 108.0 ¬
recipient name "Terry Earls"
recipient address "432 SE Main St" & return & "Bellevue, WA 98004" ¬
salutation "Dear Terry," ¬
salutation type salutation informal ¬
recipient reference "" ¬
mailing instructions "" ¬
attention line "" ¬
subject "End of Year Report" ¬
cc list "" ¬
return address "" ¬
sender name "" ¬
closing "Sincerely yours,"¬
sender company ""¬
sender job title "" ¬
sender initials "" ¬
enclosure count 0
run letter wizard active document letter content myLetter
Command: create new document for hyperlink
Creates a new document linked to the specified hyperlink.
Syntax
create new document for hyperlink hyperlink Required. An expression that returns a hyperlink
object.
file name Unicode text Required. The file name of the specified document.
edit now Boolean Required. True to have the specified document open immediately in its
associated editing environment. The default value is true.