Jump to content
Sign in to follow this  

How to read data of an Excel worksheet?

Recommended Posts


How to read data of an Excel worksheet?

In the example below am reading data of a txt file


$file = FileOpen("c:\Familia.txt", 0)

While 1

$Whole_Line = FileReadLine($File)

$Columns = StringSplit($Whole_Line, "|")

$First_Column = $Columns[1]

$Second_Column = $Columns[2]

If @error = -1 Then ExitLoop

WinWaitActive("Cadastro de Clientes")

ControlClick("Cadastro de Clientes", "", "[CLASS:TEdit;INSTANCE:2]")


ControlClick("Cadastro de Clientes", "", "[CLASS:TEdit;INSTANCE:1]")


ControlClick("Cadastro de Clientes", "", "[CLASS:TButton; TEXT:Gravar; INSTANCE:2]")




MsgBox(0, "Teste", "Todos os arquivos foram gravados com sucesso")

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.