Number to letter

Number to letter

Postby acwoo1 » Wed Dec 06, 2017 2:58 pm

Hi
nRow = 6
do while nRow <= 31
oSheet:Cells( nRow, 13 ):FORMULA := "=" + G7-F7"
nRow = nRow + 1
enddo

How to change number to letter, so that it besomes:
G7 - F7
G8 - F8
G9 - F9

Regards
ACWoo
Using FWH1510+bcc582
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am

Re: Number to letter

Postby nageswaragunupudi » Wed Dec 06, 2017 3:04 pm

CHR( nCol + 64 ) + LTrim( Str( nRow ) )
Works for values of nCol from 1 to 26
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10663
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Number to letter

Postby acwoo1 » Thu Dec 07, 2017 1:58 am

Thanks Mr Rao

It works.

Regards

ACWoo
acwoo1
 
Posts: 173
Joined: Tue Nov 10, 2009 10:56 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 45 guests