Hmm... have I done somthing wrong with this code below?
 Code:
call @ScriptDir + "\readexcel2.udf"

$Brandshop = readexcel2(@Scriptdir + '\pccs.xls')

If @ERROR = "2"					; pcc spreadsheet is required - die if not provided
  ? 'ERROR OCCURED: @serror (@error)' @CRLF @CRLF
  Quit 1
EndIf
? 'Current error status is ' + @SERROR  + " - " + @ERROR
? 'Rows in spreadsheet are ' + ubound($brandshop)
	For $counter = 0 to ubound($brandshop)
		? "PCC: " $brandshop[$counter,0]
		? "Brand: " $brandshop[0,1]
	Next


I get the response
 Quote:
Current error status is The operation completed successfully. - 0
Rows in spreadsheet are -1


The file it is reading is a 97-2003 XLS file created in Excel 2007.

Anyone have any ideas?

Pax