Application Methods (Word)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Methods

Name

Description

Activate

Activates the specified object.

AddAddress

Adds an entry to the address book. Each entry has values for one or more tag IDs.

AutomaticChange

Performs an AutoFormat action when there is a change suggested by the Office Assistant. If no AutoFormat action is active, this method generates an error.

BuildKeyCode

Returns a unique number for the specified key combination.

CentimetersToPoints

Converts a measurement from centimeters to points (1 cm = 28.35 points). Returns the converted measurement as a Single.

ChangeFileOpenDirectory

Sets the folder in which Word searches for documents.

CheckGrammar

Checks a string for grammatical errors. Returns a Boolean to indicate whether the string contains grammatical errors. True if the string contains no errors.

CheckSpelling

Checks a string for spelling errors. Returns a Boolean to indicate whether the string contains spelling errors. True if the string has no spelling errors.

CleanString

Removes nonprinting characters (character codes 1 ? 29) and special Word characters from the specified string or changes them to spaces (character code 32). Returns the result as a String.

CompareDocuments

Compares two documents and returns a Document object that represents the document that contains the differences between the two documents, marked using tracked changes.

DDEExecute

Sends a command or series of commands to an application through the specified dynamic data exchange (DDE) channel.

DDEInitiate

Opens a dynamic data exchange (DDE) channel to another application, and returns the channel number.

DDEPoke

Uses an open dynamic data exchange (DDE) channel to send data to an application.

DDERequest

Uses an open dynamic data exchange (DDE) channel to request information from the receiving application, and returns the information as a String.

DDETerminate

Closes the specified dynamic data exchange (DDE) channel to another application.

DDETerminateAll

Closes all dynamic data exchange (DDE) channels opened by Microsoft Word.

DefaultWebOptions

Returns the DefaultWebOptions object that contains global application-level attributes used by Microsoft Word whenever you save a document as a Web page or open a Web page.

GetAddress

Returns an address from the default address book.

GetDefaultTheme

Returns a String that represents the name of the default theme plus the theme formatting options Microsoft Word uses for new documents, e-mail messages, or Web pages.

GetSpellingSuggestions

Returns a SpellingSuggestions collection that represents the words suggested as spelling replacements for a given word.

GoBack

Moves the insertion point among the last three locations where editing occurred in the active document (the same as pressing SHIFT+F5).

GoForward

Moves the insertion point forward among the last three locations where editing occurred in the active document.

Help

Displays installed Help information.

HelpTool

InchesToPoints

Converts a measurement from inches to points (1 inch = 72 points). Returns the converted measurement as a Single.

Keyboard

Returns or sets the keyboard language and layout settings.

KeyboardBidi

Sets the keyboard language to a right-to-left language and the text entry direction to right-to-left.

KeyboardLatin

Sets the keyboard language to a left-to-right language and the text entry direction to left-to-right.

KeyString

Returns the key combination string for the specified keys (for example, CTRL+SHIFT+A).

LinesToPoints

Converts a measurement from lines to points (1 line = 12 points). Returns the converted measurement as a Single.

ListCommands

Creates a new document and then inserts a table of Word commands along with their associated shortcut keys and menu assignments.

LoadMasterList

Loads a bibliography source file.

LookupNameProperties

Looks up a name in the global address book list and displays the Properties dialog box, which includes information about the specified name.

MergeDocuments

Compares two documents and returns a Document object that represents the document that contains the differences between the two documents, marked using tracked changes.

MillimetersToPoints

Converts a measurement from millimeters to points (1 mm = 2.85 points). Returns the converted measurement as a Single.

Move

Positions a task window or the active document window.

NewWindow

Opens a new window with the same document as the specified window. Returns a Window object.

NextLetter

You have requested Help for a Visual Basic keyword used only on the Macintosh. For information about the NextLetter method of the Application object, consult the language reference Help included with Microsoft Office Macintosh Edition.

OnTime

Starts a background timer that runs a macro at a specified time.

OrganizerCopy

Copies the specified AutoText entry, toolbar, style, or macro project item from the source document or template to the destination document or template.

OrganizerDelete

Deletes the specified style, AutoText entry, toolbar, or macro project item from a document or template.

OrganizerRename

Renames the specified style, AutoText entry, toolbar, or macro project item in a document or template.

PicasToPoints

Converts a measurement from picas to points (1 pica = 12 points). Returns the converted measurement as a Single.

PixelsToPoints

Converts a measurement from pixels to points. Returns the converted measurement as a Single.

PointsToCentimeters

Converts a measurement from points to centimeters (1 centimeter = 28.35 points). Returns the converted measurement as a Single.

PointsToInches

Converts a measurement from points to inches (1 inch = 72 points). Returns the converted measurement as a Single.

PointsToLines

Converts a measurement from points to lines (1 line = 12 points). Returns the converted measurement as a Single.

PointsToMillimeters

Converts a measurement from points to millimeters (1 millimeter = 2.835 points). Returns the converted measurement as a Single.

PointsToPicas

Converts a measurement from points to picas (1 pica = 12 points). Returns the converted measurement as a Single.

PointsToPixels

Converts a measurement from points to pixels. Returns the converted measurement as a Single.

PrintOut

Prints all or part of the specified document.

ProductCode

Returns the Microsoft Word globally unique identifier (GUID) as a String.

PutFocusInMailHeader

Places the insertion point in the To line of the mail header if the document in the active window is an e-mail document.

Quit

Quits Microsoft Word and optionally saves or routes the open documents.

Repeat

Repeats the most recent editing action one or more times. Returns True if the commands were repeated successfully.

ResetIgnoreAll

Clears the list of words that were previously ignored during a spelling check.

Resize

Sizes the Word application window or the specified task window.

Run

Runs a Visual Basic macro.

ScreenRefresh

Updates the display on the monitor with the current information in the video memory buffer.

SetDefaultTheme

Sets a default theme for Microsoft Word to use with new documents, e-mail messages, or Web pages.

ShowClipboard

Displays the Clipboard task pane.

ShowMe

SubstituteFont

Sets font-mapping options.

ToggleKeyboard

Switches the keyboard language setting between right-to-left and left-to-right languages.