>Look at how VBA says GO BOTT.
>
> Selection.SpecialCells(xlCellTypeLastCell).Select
>
>
xlCellTypeLastCell should be in your Excel header file if you are coming out of VFP.
You can also replace the xlCellTypeLastCell constant with its numerical value which won't need the header file.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com