ExcelGetCellIsFormula
Estrutura
ExcelGetCellIsError(iRow, iCol)
Tipo
Função
Descrição
Esta função devolve «1» se a célula indicada da folha atual for uma fórmula e «0» caso contrário.
Parâmetros: 2
iRow = A linha da célula. 1 é a linha superior.
iCol = A coluna da célula. 1 corresponde à coluna A
Exemplo
Experimente
ExcelNewFile(3, "v2003")
ExcelGetSheetByIndex(1)
ShowMessage(ExcelGetCellIsFormula(1,1)) 'Retorna "0"
ExcelSetCellAsFormula(1,1,"=1+2") ' Fórmula =1+2
ShowMessage(ExcelGetCellIsFormula(1,1)) 'Retorna "1"
Exceto
ShowMessage(LastExceptionMessage)
Fim da tentativa