XLSReadWriteII 5 - IsFormulaCell

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
afalencar
Posts: 2
Joined: Fri Dec 16, 2011 12:47 am

XLSReadWriteII 5 - IsFormulaCell

Post by afalencar »

Hi

I'm trying to convert my source code developed for version 4, and i found a situation without a clear way to change it:

if (Cell[col,row] is TFormulaCell) then
{something}

How can i verify if a specific cell already contains a formula, with the new version ?

Thanks
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: XLSReadWriteII 5 - IsFormulaCell

Post by larsa »

Hello

Use the CellType property.

Example:

Code: Select all

  if FXSS.XLS[0].CellType[2,2] in [xctFloatFormula,xctStringFormula,xctBooleanFormula,xctErrorFormula] then
    ShowMessage('Formula cell');
Lars Arvidsson, Axolot Data
Post Reply