nCol = 222 > >* using Excel >cColRef = oWorkSeet.Cells(1,nCol).Address(.T.,.F.,1) >cColLetter = LEFT(cColRef, AT("$", cColRef)-1) > >* VFP code only >cColLetter = IIF(nCol>26, CHR(Int((nCol - 1) / 26) + 64), "") + ; > CHR(((nCol - 1) % 26) + 65) > > >