Code: Select all
//Add 14 Rows
Let>WIN_USEHANDLE=0
SetFocus>Eye Center.xlsx - Excel
Wait>1.0
Press CTRL
Wait>0.5
Press Shift
Wait>0.5
Send>+ * 14
Release CTRL
Moderators: Dorian (MJT support), JRL
Code: Select all
//Add 14 Rows
Let>WIN_USEHANDLE=0
SetFocus>Eye Center.xlsx - Excel
Wait>1.0
Press CTRL
Wait>0.5
Press Shift
Wait>0.5
Send>+ * 14
Release CTRL
Code: Select all
//Create a workbook
IfNotFileExists>%script_dir%\test-add-rows.xlsx
XLCreate>%script_dir%\test-add-rows.xlsx,1,xlbook
XLQuit>xlbook
MDL>Excel file created
Endif
//Add 14 rows of data
//Step 1. Open the xlsx file
XLOpen>%script_dir%\test-add-rows.xlsx,1,xlbook
//Step 2. Enter data in a loop
Let>loopcount=5
repeat>loopcount
XLSetCell>xlbook,Sheet1,%loopcount%,3,Hello %loopcount%,res
XLSetCell>xlbook,Sheet1,%loopcount%,4,World %loopcount%,res
Let>loopcount=loopcount+1
Until>loopcount,19