[ autoit ]
#include #include $sFilePath1 = @ScriptDir & "\TEP.HD#1.xlsx" ;This file should already exist $oExcel = _ExcelBookOpen($sFilePath1,@SW_MAXIMIZE) Send("{CTRLDOWN}{PGDN}{CTRLUP}") sleep (1000) $aArray = _ExcelReadSheetToArray($oExcel,1,1,41,4) ;Using Default Parameters _ArrayDisplay($aArray, "Array using Default Parameters") MsgBox(0, "Exiting", "Press OK to Save File and Exit") _ArrayToClip($aArray) ClipGet() _ExcelBookClose($oExcel) ; And finally we close out If @error = 1 Then MsgBox(0, "Error!", "Unable to Create the Excel Object") Exit ElseIf @error = 2 Then MsgBox(0, "Error!", "File does not exist - Shame on you!") Exit EndIf
Here is my Array result
![Posted Image](http://img16.imageshack.us/img16/2962/trimy.png)
How can I ?
- want to trim Row[0] and Col[0] that's added , i want to use only my data (Col1 Row 1)
- Copy Array to Clipboard
PS. i try to use
[ autoit ]
Thx so much