NamedRange.CalculateRowMajorOrder Method (2007 System)

Calculates a specific range of cells.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
Public Function CalculateRowMajorOrder As Object
'Usage
Dim instance As NamedRange 
Dim returnValue As Object 

returnValue = instance.CalculateRowMajorOrder()
public Object CalculateRowMajorOrder()
public:
Object^ CalculateRowMajorOrder()
public function CalculateRowMajorOrder() : Object

Return Value

Type: System.Object
An object that represents the calculation of a specific range of cells.

Remarks

The CalculateRowMajorOrder method calculates the specified range cell by cell, from its top-left corner to its bottom-right corner in row-major order. This is the same process that is used by Excel 2000 and earlier versions to calculate a range.

Examples

The following code example causes Excel to calculate the specified named range. To run this code example, add a named range control that spans one or more cells that contain some formulas and name it myFormulaRange.

This example is for a document-level customization.

Private Sub CalculateRange()
    Dim myNamedRange As Microsoft.Office.Tools.Excel.NamedRange = _
        Globals.Sheet1.myFormulaRange

    myNamedRange.CalculateRowMajorOrder()
End Sub
private void CalculateRange()
{
    Microsoft.Office.Tools.Excel.NamedRange myNamedRange =
        Globals.Sheet1.myFormulaRange;

    myNamedRange.CalculateRowMajorOrder();
}

.NET Framework Security

See Also

Reference

NamedRange Class

NamedRange Members

Microsoft.Office.Tools.Excel Namespace