Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Number Format Frustration
Message
From
19/02/2021 14:34:39
 
 
To
19/02/2021 14:23:08
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01678469
Message ID:
01678471
Views:
52
>Dear sirs (or Madam Tamar)
>
>using excel automation, I am trying to format a number which is longer then 15 digits.
>for example: this tracking number "9405511899560508810804" will always render as "9405511899560500000000"
>I have tried several iterations of the following:
>
>lnTrackNo = len("9405511899560508810804")
>
>m.loExcel.Range([C2:C2])).NumberFormat = "0"
>m.loExcel.Range([C2:C2])).NumberFormat = "#"
>m.loExcel.Range([C2:C2])).NumberFormat = "Special"
>m.loExcel.Range([C2:C2])).NumberFormat = "Custom"
>m.loExcel.Range([C2:C2])).NumberFormat = Replicate([0],m.lnTracnNo)
>
>any suggestions would be greatly appreciated.

Don't use numeric, use text.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform