Ok, It is working. But I need more help again. I made first the blue grid 3x6 and now I need to fraction each cell into smaller grids (3x6 grids again) as the green one. However, when I select a cell and use the script I get the red ones. Could you make it work with selections as well? I hope I'm not asking too much and over-complicate the script. THANKS.