Originally posted by: qtbgo
Hi, I want to read data from Excel with dynamic range. My code is as follows.
1 in the .mod file:
int q = ... ;
string r_rangeInExcel;
execute {
r_rangeInExcel = "P13:P" + q.tostring() ;
}
int r
http://1..q = ... ;
2 In the .dat file:
SheetConnection sheet("qtb.xls");
q from SheetRead(sheet,"my!h9");
r from SheetRead(sheet,r_rangeInExcel);
But an error says Excel range is unknown.
Any hints?
#CPOptimizer#DecisionOptimization