JackSparrow
Member
I am trying to copy a block of cells in a sheet to another location in the same sheet
I understand that I can copy using readrange but I don't know how to paste the results to a block yet, I am assuming I will just paste to the top left cell of required destination
However before I get that far I have come across something I just don't understand
The first line of code will run but the second won't
Any ideas?
The error is
java.lang.RuntimeException: Object should first be initialized (PoiSheet).
I understand that I can copy using readrange but I don't know how to paste the results to a block yet, I am assuming I will just paste to the top left cell of required destination
However before I get that far I have come across something I just don't understand
The first line of code will run but the second won't
Any ideas?
B4X:
Dim LastEOI As XLReaderResult = xl.Reader.ReadRange(ExcelDirectory, eoiFileName,"Sheet1!A1:A1000")
Dim result2 As XLReaderResult = xl.Reader.ReadRange(ExcelDirectory, eoiFileName, "Sheet!A1:J28")
The error is
java.lang.RuntimeException: Object should first be initialized (PoiSheet).