Application-Objekt (Excel)
Stellt die gesamte Microsoft Excel-Anwendung dar.
Beispiel
Verwenden Sie die Eigenschaft Application, um das Objekt Application zurückzugeben. Im folgenden Beispiel wird die Eigenschaft Windows auf das Objekt Application angewendet.
Application.Windows("book1.xls").Activate
Im folgenden Beispiel wird ein Excel-Arbeitsmappenobjekt in einer anderen Anwendung erstellt, und anschließend wird eine Arbeitsmappe in Excel geöffnet.
Set xl = CreateObject("Excel.Sheet")
xl.Application.Workbooks.Open "newbook.xls"
Viele der Eigenschaften und Methoden, die die am häufigsten verwendeten Benutzeroberflächenobjekte wie die aktive Zelle (Eigenschaft ActiveCell) zurückgeben, können ohne den Objektqualifizierer Application verwendet werden. So können Sie z. B. anstelle von:
Application.ActiveCell.Font.Bold = True
Folgendes schreiben:
ActiveCell.Font.Bold = True
Bemerkungen
Das Objekt Application umfasst Folgendes:
- Anwendungsweite Einstellungen und Optionen.
- Methoden, die Objekte der obersten Ebene zurückgeben wie ActiveCell, ActiveSheet usw.
Ereignisse
- AfterCalculate
- NewWorkbook
- ProtectedViewWindowActivate
- ProtectedViewWindowBeforeClose
- ProtectedViewWindowBeforeEdit
- ProtectedViewWindowDeactivate
- ProtectedViewWindowOpen
- ProtectedViewWindowResize
- SheetActivate
- SheetBeforeDelete
- SheetBeforeDoubleClick
- SheetBeforeRightClick
- SheetCalculate
- SheetChange
- SheetDeactivate
- SheetFollowHyperlink
- SheetLensGalleryRenderComplete
- SheetPivotTableAfterValueChange
- SheetPivotTableBeforeAllocateChanges
- SheetPivotTableBeforeCommitChanges
- SheetPivotTableBeforeDiscardChanges
- SheetPivotTableUpdate
- SheetSelectionChange
- SheetTableUpdate
- WindowActivate
- WindowDeactivate
- WindowResize
- WorkbookActivate
- WorkbookAddinInstall
- WorkbookAddinUninstall
- WorkbookAfterSave
- WorkbookAfterXmlExport
- WorkbookAfterXmlImport
- WorkbookBeforeClose
- WorkbookBeforePrint
- WorkbookBeforeSave
- WorkbookBeforeXmlExport
- WorkbookBeforeXmlImport
- WorkbookDeactivate
- WorkbookModelChange
- WorkbookNewChart
- WorkbookNewSheet
- WorkbookOpen
- WorkbookPivotTableCloseConnection
- WorkbookPivotTableOpenConnection
- WorkbookRowsetComplete
- WorkbookSync
Methoden
- ActivateMicrosoftApp
- AddCustomList
- Calculate
- CalculateFull
- CalculateFullRebuild
- CalculateUntilAsyncQueriesDone
- CentimetersToPoints
- CheckAbort
- CheckSpelling
- ConvertFormula
- DDEExecute
- DDEInitiate
- DDEPoke
- DDERequest
- DDETerminate
- DeleteCustomList
- DisplayXMLSourcePane
- DoubleClick
- Evaluate
- ExecuteExcel4Macro
- FindFile
- GetCustomListContents
- GetCustomListNum
- GetOpenFilename
- GetPhonetic
- GetSaveAsFilename
- Goto
- Help
- InchesToPoints
- InputBox
- Intersect
- MacroOptions
- MailLogoff
- MailLogon
- NextLetter
- OnKey
- OnRepeat
- OnTime
- OnUndo
- Quit
- RecordMacro
- RegisterXLL
- Repeat
- Run
- SendKeys
- SharePointVersion
- Undo
- Union
- Volatile
- Wait
Eigenschaften
- ActiveCell
- ActiveChart
- ActiveEncryptionSession
- ActivePrinter
- ActiveProtectedViewWindow
- ActiveSheet
- ActiveWindow
- ActiveWorkbook
- AddIns
- AddIns2
- AlertBeforeOverwriting
- AltStartupPath
- AlwaysUseClearType
- Application
- ArbitraryXMLSupportAvailable
- AskToUpdateLinks
- Assistance
- AutoCorrect
- AutoFormatAsYouTypeReplaceHyperlinks
- AutomationSecurity
- AutoPercentEntry
- AutoRecover
- Build
- CalculateBeforeSave
- Calculation
- CalculationInterruptKey
- CalculationState
- CalculationVersion
- Caller
- CanPlaySounds
- CanRecordSounds
- Caption
- CellDragAndDrop
- Zellen
- ChartDataPointTrack
- Charts
- ClipboardFormats
- ClusterConnector
- Columns
- COMAddIns
- CommandBars
- CommandUnderlines
- ConstrainNumeric
- ControlCharacters
- CopyObjectsWithCells
- Creator
- Cursor
- CursorMovement
- CustomListCount
- CutCopyMode
- DataEntryMode
- DDEAppReturnCode
- DecimalSeparator
- DefaultFilePath
- DefaultSaveFormat
- DefaultSheetDirection
- DefaultWebOptions
- DeferAsyncQueries
- Dialogs
- DisplayAlerts
- DisplayClipboardWindow
- DisplayCommentIndicator
- DisplayDocumentActionTaskPane
- DisplayDocumentInformationPanel
- DisplayExcel4Menus
- DisplayFormulaAutoComplete
- DisplayFormulaBar
- DisplayFullScreen
- DisplayFunctionToolTips
- DisplayInsertOptions
- DisplayNoteIndicator
- DisplayPasteOptions
- DisplayRecentFiles
- DisplayScrollBars
- DisplayStatusBar
- EditDirectlyInCell
- EnableAnimations
- EnableAutoComplete
- EnableCancelKey
- EnableCheckFileExtensions
- EnableEvents
- EnableLargeOperationAlert
- EnableLivePreview
- EnableMacroAnimations
- EnableSound
- ErrorCheckingOptions
- Excel4IntlMacroSheets
- Excel4MacroSheets
- ExtendList
- FeatureInstall
- FileConverters
- FileDialog
- FileExportConverters
- FileValidation
- FileValidationPivot
- FindFormat
- FixedDecimal
- FixedDecimalPlaces
- FlashFill
- FlashFillMode
- FormulaBarHeight
- GenerateGetPivotData
- GenerateTableRefs
- Height
- HighQualityModeForGraphics
- Hinstance
- HinstancePtr
- Hwnd
- IgnoreRemoteRequests
- Interactive
- International
- IsSandboxed
- Iteration
- LanguageSettings
- LargeOperationCellThousandCount
- Left
- LibraryPath
- MailSession
- MailSystem
- MapPaperSize
- MathCoprocessorAvailable
- MaxChange
- MaxIterations
- MeasurementUnit
- MergeInstances
- MouseAvailable
- MoveAfterReturn
- MoveAfterReturnDirection
- MultiThreadedCalculation
- Name
- Names
- NetworkTemplatesPath
- NewWorkbook
- ODBCErrors
- ODBCTimeout
- OLEDBErrors
- OnWindow
- OperatingSystem
- OrganizationName
- Parent
- Path
- PathSeparator
- PivotTableSelection
- PreviousSelections
- PrintCommunication
- ProductCode
- PromptForSummaryInfo
- ProtectedViewWindows
- QuickAnalysis
- Range
- Ready
- RecentFiles
- RecordRelative
- ReferenceStyle
- RegisteredFunctions
- ReplaceFormat
- RollZoom
- Rows
- RTD
- ScreenUpdating
- Selection
- SensitivityLabelPolicy
- Sheets
- SheetsInNewWorkbook
- ShowChartTipNames
- ShowChartTipValues
- ShowDevTools
- ShowMenuFloaties
- ShowQuickAnalysis
- ShowSelectionFloaties
- ShowStartupDialog
- ShowToolTips
- SmartArtColors
- SmartArtLayouts
- SmartArtQuickStyles
- Speech
- SpellingOptions
- StandardFont
- StandardFontSize
- StartupPath
- StatusBar
- TemplatesPath
- ThisCell
- ThisWorkbook
- ThousandsSeparator
- Top
- TransitionMenuKey
- TransitionMenuKeyAction
- TransitionNavigKeys
- UsableHeight
- UsableWidth
- UseClusterConnector
- UsedObjects
- UserControl
- UserLibraryPath
- UserName
- UseSystemSeparators
- Wert
- VBE
- Version
- Visible
- WarnOnFunctionNameConflict
- Watches
- Width
- Windows
- WindowsForPens
- WindowState
- Workbooks
- WorksheetFunction
- Arbeitsblätter
Siehe auch
Support und Feedback
Haben Sie Fragen oder Feedback zu Office VBA oder zu dieser Dokumentation? Unter Office VBA-Support und Feedback finden Sie Hilfestellung zu den Möglichkeiten, wie Sie Support erhalten und Feedback abgeben können.