NativeExcel suite v2.x

RefersTo property

Returns or sets the formula that the name is defined to refer to, in A1-style notation, beginning with an equal sign. Read/write WideString.

Syntax

property RefersTo: WideString;

Example

This example changes the formula for 'MyName' defined name of the workbook.
With Workbook.Names do begin
   if Assigned(Item['MyName']) then 
      Item['MyName'].RefersTo := '=Sheet1!$A$1';
end;

See also

Copyright © NikaSoft 2004-2012