View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
tchid2 tchid2 is offline
external usenet poster
 
Posts: 2
Default Can I get a number in such a format as it should be?

Try the Format() formula. Something like:

Let vMyVar = Format(vMyVar, "00000000000000000.0")

HTH,
tchid2


"OrientalPearl" wrote:

Howday everyone,

Just a quick question here. How can I disable scientific notation to
kick in when manipulating a variable in VBA, i.e. to display/use/...
its value as 123456789123456789 as exactly it should be rather than
1.23E+18. Basically scientific notation needs to be totally switched
off here. The variable is of type Single by the way.

Many thanks
Frank