TUdfEventArgs.Xls Property ExcelFile that has the formula being evaluated. You might change its ActiveSheet property inside this method and there is no need to restore it back. Syntax Namespace: FlexCel.Core public ExcelFile Xls { get; } See also TUdfEventArgs