There are several errors in your code, but here is the code that work:
//assume source in book1 and result in book2
range rdest = [Book2]1!wcol(1);
int nsheets = [Book1]!page.nlayers;
for (ii=1;ii<=nsheets;ii++) {
range r1 = [Book1]$(ii)!wcol(2);
rdest[ii] = r1[31];
}
CP