I'm writing a script to copy text message from docx file
to excel file.
the method i used is "use select all and copy all text
in docx file and paste it in excel"
my script is work except one thing, i can't select which
cell in excel to paste the message.
the message will be paste on cell the was select last time.
Plaese show me how to select excel's cell with script.
there is my code
Code: Select all
//set file destination
Let>OPfilename=C:\W2E\input.xlsx
Let>IPfilename=C:\W2E\data.docx
Let>FileStauts=00
//Check Exists File
IfFileExists>OPfilename
//Output File Found!
Let>FileStauts= %FileStauts% + 1
Endif
IfFileExists>IPfilename
//Input File Found!
Let>FileStauts= %FileStauts% + 10
Endif
if>Filestauts=11
MessageModal>Files is ready! Press Enter to Begin.
XLOpen>C:\W2E\input.xlsx,,xlBook
WaitWindowOpen>input - Excel
ExecuteFile>C:\W2E\data.docx,
WaitWindowOpen>data - Word
//Copy all text in word file
SetFocus>data - Word
Wait>0.5
Press LCTRL
Send>a
Wait>0.5
Press LCTRL
Send>c
//Paste all text in excel
SetFocus>input - Excel
WaitWindowFocused>input - Excel
Wait>0.5
Press LCTRL
Send>v
Else
MessageModal>Input File or Output File is not Found!
Endif