Ir diretamente para o conteúdo principal

ExcelSetCellEmpty

Estrutura

ExcelSetCellEmpty(iRow, iCol)

Tipo

Procedimento

Descrição

Este procedimento limpa a célula indicada na folha atual.

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(ExcelGetCellIsEmpty(1,1)) 'Retorna "1"

ExcelSetCellAsNumber(1,1,1,1)

ShowMessage(ExcelGetCellIsEmpty(1,1)) 'Retorna "0"

ExcelSetCellEmpty(1,1)

ShowMessage(ExcelGetCellIsEmpty(1,1)) 'Retorna "1"

Exceto

ShowMessage(LastExceptionMessage)

Fim da tentativa