The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
5 out of 11 rated this helpful - Rate this topic

ActiveCell Property [Excel 2003 VBA Language Reference]

Office 2003

Returns a Range object that represents the active cell in the active window (the window on top) or in the specified window. If the window isn't displaying a worksheet, this property fails. Read-only.


If you don't specify an object qualifier, this property returns the active cell in the active window.

Be careful to distinguish between the active cell and the selection. The active cell is a single cell inside the current selection. The selection may contain more than one cell, but only one is the active cell.

The following expressions all return the active cell, and are all equivalent.



This example uses a message box to display the value in the active cell. Because the ActiveCell property fails if the active sheet isn't a worksheet, the example activates Sheet1 before using the ActiveCell property.

MsgBox ActiveCell.Value

This example changes the font formatting for the active cell.

With ActiveCell.Font
    .Bold = True
    .Italic = True
End With

© 2014 Microsoft. All rights reserved.