Depends on what you want to do, could do something like this...
Code: Select all
Let>localFileDir=C:\Temp\temp.xls
Let>sheetName=Sheet1
XLSheetToArray>%localFileDir%,%sheetName%,sheetArray
'Select range
Let>rRow=40
Let>rCol=40
'Select first row and column to start from
'if 1, this will select 2
Let>fRow=1
Let>fCol=1
GoSub>SelectRange
MessageModal>%cText%
SRT>SelectRange
Let>cText=
Let>row=%fRow%
Repeat>row
Add>row,1
Let>col=%fCol%
Repeat>col
Add>col,1
Let>sText=sheetArray_%row%_%col%
Position>sheetArray_,%sText%,1,pos
If>pos=0
ConCat>%cText%,%sText%
If>col=rCol
ConCat>%cText%,%CRLF%
EndIf
EndIf
Until>col,%rCol%
Until>row,%rRow%
END>SelectRange
Or if you know exactly where 1 value is that you need:
Code: Select all
Let>localFileDir=C:\Temp\temp.xls
Let>sheetName=Sheet1
XLSheetToArray>%localFileDir%,%sheetName%,sheetArray
Let>row=2
Let>col=2
Let>sText=sheetArray_%row%_%col%