Break On
'Kix Version: ' @Kix ?
; Instatiate the Excel object and open the file
; The spreadsheet contains the following simple data:
; A B C D
; E F G H
; I J K L
; M N O P
$Excel = CreateObject("Excel.Application")
$Workbook = $Excel.Workbooks.Open("c:\temp\test.xls")
'Single Cell:' ?
$Value = $Workbook.ActiveSheet.Range("B2").Value
'Elements: ' UBound($Value) ?
'Vartype=' VarTypeName($Value) ?
$Value ?
?
'Row of 4 Cells:' ?
$Value = $Workbook.ActiveSheet.Range("A1:D1").Value
'Elements: ' UBound($Value) ?
'Vartype=' VarTypeName($Value) ?
For Each $ in $Value
$ ?
Next
?
'Block of 4x4 Cells:' ?
$Value = $Workbook.ActiveSheet.Range("A1:D4").Value
; Close Excel now, since the last command will cause Kix to fail
; which will leave Excel running
$Excel.Quit
$Excel = 0
'Elements: ' UBound($Value) ?
'Vartype=' VarTypeName($Value) ?
For Each $ in $Value
$ ?
Next
$Value[0] ?
Exit 0