Have you checked that the array contains the values in the correct format? There is a difference between the Value and Text properties of an Excel Range. Text returns the formatted text whereas Value returns the underlying value. You could try changing:
Code:
myarray = xlsheet.Range("A1").CurrentRegion.Value
To:
Code:
myarray = xlsheet.Range("A1").CurrentRegion.Text