ExcelGetCellAsFormula
Estrutura
ExcelGetCellAsFormula(iRow, iCol)
Tipo
Função
Descrição
Esta função devolve a fórmula da célula. Caso contrário, será lançada uma exceção.
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+2"
Exceto
ShowMessage(LastExceptionMessage)
Fim da tentativa