While trying for an elegant solution, set lines per page at 100; then pages minus 1 times 100 plus the line counter will give you the total number of lines (including blank ones). Or do I misunderstand the problem? George Scithers