ExcelGetSheetByIndex
Estrutura
ExcelGetSheetByIndex(iIndex)
Tipo
Procedimento
Descrição
Esta função muda a folha atual para a folha indicada.
Parâmetros: 1
iIndex = o índice da folha para a qual se pretende mudar. A contagem de folhas começa em 1 e vai até ExcelGetSheetCount
Exemplo
Experimente
ExcelNewFile(3, "v2003")
ShowMessage(ExcelGetSheetCount) 'mostra 3
ExcelGetSheetByIndex(1)
ShowMessage(ExcelGetCurrentSheetName) 'mostra "Sheet1"
Exceto
ShowMessage(LastExceptionMessage)
Fim da tentativa