... including URL and other Internet Web site references, is subject to change. without notice. ... does not give you any license to these patents, tr
Document source : download.microsoft.com
Microsoft Word Suite
350
Example
This example updates the INCLUDETEXT fields in the active document.
repeat with aField in (get fields of active document)
if field type of aField is field include text then
update source aField
end if
end repeat
Command: update styles
Copies all styles from the attached template into the document, overwriting any existing styles in
the document that have the same name.
Syntax
update styles document Required. An expression that returns a document object.
Example
This example copies the styles from the attached template into each open document, and then it
closes each document.
repeat with aDoc in (get documents)
update styles aDoc
close aDoc saving yes
end repeat
This example changes the formatting of the Heading 1 style in the template attached to the active
document. The update styles command updates the styles in the active document, including the
Heading 1 style.
set aDoc to open as document attached template of active document
set name of font object of Word style style heading1 of aDoc to "Arial"
set bold of font object of Word style style heading1 of aDoc to False
close aDoc saving yes
update styles active document
Command: update summary properties
Updates the keyword and comment text in the Properties dialog box (File menu) to reflect the
AutoSummary content for the specified document.
Syntax
update summary properties document Required. An expression that returns a document object.
Summary :
repeat with aField in (get fields of active document) if field type of aField is field include text then update source aField end if end repeat Command: update styles Copies all styles from the attached template into the document, overwriting any existing styles in the document that have the same name.
Tags :
styles,update,adoc,actie,style,example,template,repeat,attached,object,updates,properties,end