I just got a compiler out of memory error when creating a dynamic array. I'm on a steep and slippery learning curve but I suspect the problem is here:- DIM DYNAMIC gGroupnote$(1000) DIM DYNAMIC gGroupData$(1000,100000) DIM DYNAMIC gGroupDataCount&(1000) I didn't see that string or 2D DYNAMIC arrays were illegal. Thanks Barrie Jones