This documentation is archived and is not being maintained.

Range.Offset Property 

Returns a Range object that represents a range that’s offset from the specified range.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim range1 As Range

Dim key As Object
Dim returnValue As Range
returnValue = range1.Offset(key)

property Range^ Offset{
	Range^ get();
}
public Range get_Item(
	/*in*/System.Object RowOffset, 
	/*in*/System.Object ColumnOffset
);
In JScript, you can use Indexed Properties defined by a class, but you cannot define your own.

Parameters

RowOffset

Optional Object. The number of rows (positive, negative, or 0 (zero)) by which the range is to be offset. Positive values are offset downward, and negative values are offset upward. The default value is 0.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: