HotXLS 文档

RefersTo 属性

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

语法

property RefersTo: WideString;

示例

本示例 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;

参见

IXLSName 接口
IXLSName.RefersToRange 属性
IXLSNames 接口
IXLSWorkbook.Names 属性
TXLSWorksheet.Names 属性