Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Format Cell problem
Message
De
10/06/2011 04:19:17
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
10/06/2011 04:00:52
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01513977
Message ID:
01513980
Vues:
53
>I try this,
>
>oExcel.activesheet.Range("B"+TRIM(PADR(nrow,11))).NumberFormat = [0000000000]
>
>
>The cell can dispay 000234567, but the cell is still in numeric format.
>
>How to set the cell to a text format and can display leading zero ?

Prefix it with an apostrophe:
oExcel.activesheet.Range("B"+TRANSFORM(nrow)).value = ['000234567]

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform