Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Format Cell problem
Message
From
10/06/2011 09:39:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
10/06/2011 04:43:47
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01513977
Message ID:
01514011
Views:
48
Change the cell format to text, and THEN insert the value.

>Hi,
>
>I put a prefix ' before the invoice no.
>
>
>oExcel.activesheet.Range("B"+TRIM(PADR(nrow,11))).value = "'"+rpt012->invno
>
>
>Yes, the cell can display 000234567, but the value become '000234567
>I don't want it be '000234567
>
>Please advise.
>
>Derek Yim
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform