Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
381 lines (350 sloc) 18.7 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date localization_priority
Application object (Excel)
vbaxl10.chm182073
vbaxl10.chm182073
excel
Excel.Application
19b73597-5cf9-4f56-8227-b5211f657f6f
03/27/2019
Priority

Application object (Excel)

Represents the entire Microsoft Excel application.

Example

Use the Application property to return the Application object. The following example applies the Windows property to the Application object.

Application.Windows("book1.xls").Activate

The following example creates an Excel workbook object in another application and then opens a workbook in Excel.

Set xl = CreateObject("Excel.Sheet") 
xl.Application.Workbooks.Open "newbook.xls"

Many of the properties and methods that return the most common user-interface objects, such as the active cell (ActiveCell property), can be used without the Application object qualifier. For example, instead of writing:

Application.ActiveCell.Font.Bold = True

You can write:

ActiveCell.Font.Bold = True

Remarks

The Application object contains:

  • Application-wide settings and options.
  • Methods that return top-level objects, such as ActiveCell, ActiveSheet, and so on.

Events

Methods

Properties

See also

[!includeSupport and feedback]

You can’t perform that action at this time.