Application-Objekt (Word)Application object (Word)

Stellt die Microsoft Word-Anwendung dar.Represents the Microsoft Word application. Das Application -Objekt enthält Eigenschaften und Methoden, die Objekte der obersten Ebene zurückgeben.The Application object includes properties and methods that return top-level objects. Beispielsweise gibt die ActiveDocument -Eigenschaft ein Document -Objekt zurück.For example, the ActiveDocument property returns a Document object.

BemerkungenRemarks

Verwenden Sie die Application-Eigenschaft, um das Application-Objekt zurückzugeben.Use the Application property to return the Application object. Das folgende Beispiel zeigt den Benutzernamen für Word.The following example displays the user name for Word.

MsgBox Application.UserName

Viele der Eigenschaften und Methoden, die am häufigsten verwendeten Benutzeroberflächen-Objekte zurückgeben – wie das aktive Dokument (ActiveDocument -Eigenschaft) – ohne den Objektbezeichner Application verwendet werden können.Many of the properties and methods that return the most common user-interface objects—such as the active document (ActiveDocument property)—can be used without the Application object qualifier. Beispielsweise anstelle von Application.ActiveDocument.PrintOut, Sie können schreiben ActiveDocument.PrintOut.For example, instead of writing Application.ActiveDocument.PrintOut, you can write ActiveDocument.PrintOut. Eigenschaften und Methoden, die ohne Objektkennzeichner Application verwendet werden können, werden als "global".Properties and methods that can be used without the Application object qualifier are considered "global." Um die globalen Eigenschaften und Methoden im Objektbrowseranzuzeigen, klicken Sie auf am oberen Rand der Liste im Feld Klassen .To view the global properties and methods in the Object Browser, click at the top of the list in the Classes box. (Siehe auch Global -Objekts.)(Also see the Global object.)

BemerkungenRemarks

Verwenden Sie die Microsoft Visual Basic CreateObject oder GetObject -Funktion um Automatisierung (früher OLE-Automatisierung) Word aus einer anderen Anwendung heraus steuern, um ein Word- Application -Objekt zurückzugeben.To use Automation (formerly OLE Automation) to control Word from another application, use the Microsoft Visual Basic CreateObject or GetObject function to return a Word Application object. Im folgende Beispiel für Microsoft Excel startet Word (sofern es nicht bereits ausgeführt wird) und ein vorhandenes Dokument geöffnet.The following Microsoft Excel example starts Word (if it is not already running) and opens an existing document.

Set wrd = GetObject(, "Word.Application") 
wrd.Visible = True 
wrd.Documents.Open "C:\My Documents\Temp.doc" 
Set wrd = Nothing

EreignisseEvents

NameName
DocumentBeforeCloseDocumentBeforeClose
DocumentBeforePrintDocumentBeforePrint
DocumentBeforeSaveDocumentBeforeSave
DocumentChangeDocumentChange
DocumentOpenDocumentOpen
DocumentSyncDocumentSync
EPostageInsertEPostageInsert
EPostageInsertExEPostageInsertEx
EPostagePropertyDialogEPostagePropertyDialog
MailMergeAfterMergeMailMergeAfterMerge
MailMergeAfterRecordMergeMailMergeAfterRecordMerge
MailMergeBeforeMergeMailMergeBeforeMerge
MailMergeBeforeRecordMergeMailMergeBeforeRecordMerge
MailMergeDataSourceLoadMailMergeDataSourceLoad
MailMergeDataSourceValidateMailMergeDataSourceValidate
MailMergeDataSourceValidate2MailMergeDataSourceValidate2
MailMergeWizardSendToCustomMailMergeWizardSendToCustom
MailMergeWizardStateChangeMailMergeWizardStateChange
NewDocumentNewDocument
ProtectedViewWindowActivateProtectedViewWindowActivate
ProtectedViewWindowBeforeCloseProtectedViewWindowBeforeClose
ProtectedViewWindowBeforeEditProtectedViewWindowBeforeEdit
ProtectedViewWindowDeactivateProtectedViewWindowDeactivate
ProtectedViewWindowOpenProtectedViewWindowOpen
ProtectedViewWindowSizeProtectedViewWindowSize
QuitQuit
WindowActivateWindowActivate
WindowBeforeDoubleClickWindowBeforeDoubleClick
WindowBeforeRightClickWindowBeforeRightClick
WindowDeactivateWindowDeactivate
WindowSelectionChangeWindowSelectionChange
WindowSizeWindowSize
XMLSelectionChangeXMLSelectionChange
XMLValidationErrorXMLValidationError

MethodenMethods

NameName
ActivateActivate
AddAddressAddAddress
AutomaticChangeAutomaticChange
BuildKeyCodeBuildKeyCode
CentimetersToPointsCentimetersToPoints
ChangeFileOpenDirectoryChangeFileOpenDirectory
CheckGrammarCheckGrammar
CheckSpellingCheckSpelling
CleanStringCleanString
CompareDocumentsCompareDocuments
DDEExecuteDDEExecute
DDEInitiateDDEInitiate
DDEPokeDDEPoke
DDERequestDDERequest
DDETerminateDDETerminate
DDETerminateAllDDETerminateAll
DefaultWebOptionsDefaultWebOptions
GetAddressGetAddress
GetDefaultThemeGetDefaultTheme
GetSpellingSuggestionsGetSpellingSuggestions
GoBackGoBack
GoForwardGoForward
HelpHelp
HelpToolHelpTool
InchesToPointsInchesToPoints
KeyboardKeyboard
KeyboardBidiKeyboardBidi
KeyboardLatinKeyboardLatin
KeyStringKeyString
LinesToPointsLinesToPoints
ListCommandsListCommands
LoadMasterListLoadMasterList
LookupNamePropertiesLookupNameProperties
MergeDocumentsMergeDocuments
MillimetersToPointsMillimetersToPoints
MoveMove
NewWindowNewWindow
NextLetterNextLetter
OnTimeOnTime
OrganizerCopyOrganizerCopy
OrganizerDeleteOrganizerDelete
OrganizerRenameOrganizerRename
PicasToPointsPicasToPoints
PixelsToPointsPixelsToPoints
PointsToCentimetersPointsToCentimeters
PointsToInchesPointsToInches
PointsToLinesPointsToLines
PointsToMillimetersPointsToMillimeters
PointsToPicasPointsToPicas
PointsToPixelsPointsToPixels
PrintOutPrintOut
ProductCodeProductCode
PutFocusInMailHeaderPutFocusInMailHeader
QuitQuit
RepeatRepeat
ResetIgnoreAllResetIgnoreAll
ResizeResize
RunRun
ScreenRefreshScreenRefresh
SetDefaultThemeSetDefaultTheme
ShowClipboardShowClipboard
ShowMeShowMe
SubstituteFontSubstituteFont
ToggleKeyboardToggleKeyboard

EigenschaftenProperties

NameName
ActiveDocumentActiveDocument
ActiveEncryptionSessionActiveEncryptionSession
ActivePrinterActivePrinter
ActiveProtectedViewWindowActiveProtectedViewWindow
ActiveWindowActiveWindow
Add-InsAddIns
ApplicationApplication
ArbitraryXMLSupportAvailableArbitraryXMLSupportAvailable
AssistanceAssistance
AutoCaptionsAutoCaptions
AutoCorrectAutoCorrect
AutoCorrectEmailAutoCorrectEmail
AutomationSecurityAutomationSecurity
BackgroundPrintingStatusBackgroundPrintingStatus
BackgroundSavingStatusBackgroundSavingStatus
BibliographyBibliography
BrowseExtraFileTypesBrowseExtraFileTypes
BrowserBrowser
BuildBuild
CapsLockCapsLock
CaptionCaption
CaptionLabelsCaptionLabels
ChartDataPointTrackChartDataPointTrack
CheckLanguageCheckLanguage
COMAddInsCOMAddIns
CommandBarsCommandBars
CreatorCreator
CustomDictionariesCustomDictionaries
CustomizationContextCustomizationContext
DefaultLegalBlacklineDefaultLegalBlackline
DefaultSaveFormatDefaultSaveFormat
DefaultTableSeparatorDefaultTableSeparator
DialogsDialogs
DisplayAlertsDisplayAlerts
DisplayAutoCompleteTipsDisplayAutoCompleteTips
DisplayDocumentInformationPanelDisplayDocumentInformationPanel
DisplayRecentFilesDisplayRecentFiles
DisplayScreenTipsDisplayScreenTips
DisplayScrollBarsDisplayScrollBars
DocumentsDocuments
DontResetInsertionPointPropertiesDontResetInsertionPointProperties
EmailOptionsEmailOptions
EmailTemplateEmailTemplate
EnableCancelKeyEnableCancelKey
FeatureInstallFeatureInstall
FileConvertersFileConverters
FileDialogFileDialog
FileValidationFileValidation
FindKeyFindKey
FocusInMailHeaderFocusInMailHeader
FontNamesFontNames
HangulHanjaDictionariesHangulHanjaDictionaries
HeightHeight
InternationalInternational
IsObjectValidIsObjectValid
IsSandboxedIsSandboxed
KeyBindingsKeyBindings
KeysBoundToKeysBoundTo
LandscapeFontNamesLandscapeFontNames
LanguageLanguage
LanguagesLanguages
LanguageSettingsLanguageSettings
LeftLeft
ListGalleriesListGalleries
MacroContainerMacroContainer
MailingLabelMailingLabel
MailMessageMailMessage
MailSystemMailSystem
MAPIAvailableMAPIAvailable
MathCoprocessorAvailableMathCoprocessorAvailable
MouseAvailableMouseAvailable
NameName
NewDocumentNewDocument
NormalTemplateNormalTemplate
NumLockNumLock
OMathAutoCorrectOMathAutoCorrect
OpenAttachmentsInFullScreenOpenAttachmentsInFullScreen
OptionsOptions
ParentParent
PathPath
PathSeparatorPathSeparator
PickerDialogPickerDialog
PortraitFontNamesPortraitFontNames
PrintPreviewPrintPreview
ProtectedViewWindowsProtectedViewWindows
RecentFilesRecentFiles
RestrictLinkedStylesRestrictLinkedStyles
ScreenUpdatingScreenUpdating
SelectionSelection
ShowAnimationShowAnimation
ShowStartupDialogShowStartupDialog
ShowStylePreviewsShowStylePreviews
ShowVisualBasicEditorShowVisualBasicEditor
SmartArtColorsSmartArtColors
SmartArtLayoutsSmartArtLayouts
SmartArtQuickStylesSmartArtQuickStyles
SpecialModeSpecialMode
StartupPathStartupPath
StatusBarStatusBar
SynonymInfoSynonymInfo
SystemSystem
TaskPanesTaskPanes
TasksTasks
TemplatesTemplates
TopTop
UndoRecordUndoRecord
UsableHeightUsableHeight
UsableWidthUsableWidth
UserAddressUserAddress
UserControlUserControl
UserInitialsUserInitials
UserNameUserName
VBEVBE
VersionVersion
VisibleVisible
WidthWidth
WindowsWindows
WindowStateWindowState
WordBasicWordBasic
XMLNamespacesXMLNamespaces

Siehe auchSee also

Referenz zum Word-ObjektmodellWord Object Model Reference

Support und FeedbackSupport and feedback

Haben Sie Fragen oder Feedback zu Office VBA oder zu dieser Dokumentation?Have questions or feedback about Office VBA or this documentation? Unter Office VBA-Support und Feedback finden Sie Hilfestellung zu den Möglichkeiten, wie Sie Support erhalten und Feedback abgeben können.Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.