Creates a new FunctionValue object setting the Value property to the Range passed in to the constructor and setting the Type property to FunctionValueType.RANGE.

public FunctionValue(Range range)
Public Sub New FunctionValue(range As Range)
ExcelApplication xla = new ExcelApplication();
Workbook wb = xla.Create();


wb.Worksheets.CreateWorksheet("Sheet2");


Range rng = wb.CreateRange("=Sheet1!A1:A3, Sheet2!A2:C5");
 
FunctionValue myValue = new FunctionValue(rng);
Dim xla As New ExcelApplication()
Dim wb As Workbook = xla.Create()

wb.Worksheets.CreateWorksheet("Sheet2")


Dim rng As Range = wb.CreateRange("=Sheet1!A1:A3, Sheet2!A2:C5")


Dim myValue As New FunctionValue(rng)