Microsoft Word Suite
326
Command: save version
Saves a version of the specified document with a comment.
Syntax
save version document Required. An expression that returns a document object.
comment Unicode text Required. The comment string thats saved with the version.
Example
This example saves a version of Sales.doc with a comment.
save version document "Sales.doc" comment "Minor changes to intro"
Command: screen refresh
Updates the display on the monitor with the current information in the video memory buffer. You
can use this command after using the screen updating property to disable screen updates.
Syntax
screen refresh
Remarks
Screen refresh turns on screen updating for just one instruction and then immediately turns it off.
Subsequent instructions don't update the screen until screen updating is turned on again with the
screen updating property of the application class.
Document windows are hidden when screen updating is turned off. The screen refresh command
displays updated document windows for an instant, but then they're hidden again. Therefore, you
may want to use the screen updating property instead of the screen refresh command to turn screen
updating on and off.
Example
This example turns off screen updating, opens Test.doc, inserts text, refreshes the screen, and then
closes the document (with changes saved).
set screen updating to false
open "Macintosh HD:Users:Shared:TEST.DOC"
set myRange to create range active document start 0 end 0
insert text "new" at myRange
screen refresh
close active document saving no
set screen updating to true
Command: select cell
Selects the entire cell containing the current selection. To use this command, the current selection
must be contained within a single cell.
Syntax
select cell selection object Required. An expression that returns a selection object.