Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default alpha field getting turned into an exponential number

I have written an application that retrieves information and places it into
an Excel spreadsheet. I am having trouble with my Part Number field. For
example, the part number value is supposed to be 3067E17. But, that part
number is displayed as 3.07E+20 in the spreadsheet. Is there anything that I
can add to my application that would get the part number to display properly?
I have tried using NumberFormat = "@", but that did not help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
JK JK is offline
external usenet poster
 
Posts: 9
Default alpha field getting turned into an exponential number

Have you tried using the NumberFormat = "@" BEFORE you actually put the
text into the cell? If not, give it a shot.

-JK

dkellison wrote:
I have written an application that retrieves information and places it into
an Excel spreadsheet. I am having trouble with my Part Number field. For
example, the part number value is supposed to be 3067E17. But, that part
number is displayed as 3.07E+20 in the spreadsheet. Is there anything that I
can add to my application that would get the part number to display properly?
I have tried using NumberFormat = "@", but that did not help.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default alpha field getting turned into an exponential number

I just tried using the NumberFormat = "@" before loading any data into the
cell and I still encounter the same problem.

Thanks for the repsonse.

dkellison


"JK" wrote:

Have you tried using the NumberFormat = "@" BEFORE you actually put the
text into the cell? If not, give it a shot.

-JK

dkellison wrote:
I have written an application that retrieves information and places it into
an Excel spreadsheet. I am having trouble with my Part Number field. For
example, the part number value is supposed to be 3067E17. But, that part
number is displayed as 3.07E+20 in the spreadsheet. Is there anything that I
can add to my application that would get the part number to display properly?
I have tried using NumberFormat = "@", but that did not help.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default alpha field getting turned into an exponential number

This works for me:
ActiveCell.NumberFormat = "@"
ActiveCell.Value = "3067E17"

Or, irrespective of the formatting:
ActiveCell.Value = "'3067E17"

NickHK

"dkellison" wrote in message
...
I just tried using the NumberFormat = "@" before loading any data into the
cell and I still encounter the same problem.

Thanks for the repsonse.

dkellison


"JK" wrote:

Have you tried using the NumberFormat = "@" BEFORE you actually put the
text into the cell? If not, give it a shot.

-JK

dkellison wrote:
I have written an application that retrieves information and places it

into
an Excel spreadsheet. I am having trouble with my Part Number field.

For
example, the part number value is supposed to be 3067E17. But, that

part
number is displayed as 3.07E+20 in the spreadsheet. Is there anything

that I
can add to my application that would get the part number to display

properly?
I have tried using NumberFormat = "@", but that did not help.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pvt Table Turned Values After Insert Calculated Field C02C04 Excel Discussion (Misc queries) 0 January 9th 09 03:19 PM
Looking for alpha characters in a field fgwiii[_2_] Excel Worksheet Functions 1 September 17th 08 12:41 PM
Split Alpha Field Dick W. Excel Worksheet Functions 2 August 18th 08 05:05 PM
exponential into text or number santhosh Excel Discussion (Misc queries) 1 July 27th 07 05:52 PM
Merge an alpha field and a numeric field grams Excel Discussion (Misc queries) 3 August 29th 05 11:33 PM


All times are GMT +1. The time now is 07:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"