Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to end a copy on Excel
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00958704
Message ID:
00959001
Views:
21
Yest it helps
Thanks


>I don't know if it helps but it's easy to convert column number into column reference.
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)
>
>
>
B.D.H.
Previous
Reply
Map
View

Click here to load this message in the networking platform