返回当前合并运算所使用的函数代码。可为以下 XlConsolidationFunction 常量之一。Long 类型,只读。
| XlConsolidationFunction 可为以下 XlConsolidationFunction 常量之一。 | 
| xlAverage | 
| xlCount | 
| xlCountNums
     xlMax xlMin xlProduct xlStDev xlStDevP xlSum xlUnknown xlVar xlVarP  | 
如果当前合并计算所使用的函数为 SUM 函数,本示例将显示一消息框。
If Worksheets("Sheet1").ConsolidationFunction = xlSum Then
    MsgBox "Sheet1 uses the SUM function for consolidation."
End If