Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default prevent schientific notation

I have a vb program that takes a skeleton xls file with a few rows of
headers and an sql command to obtaiin data, and then populates the
spreadsheet. The number of rows and columns varies as does the type of
data in each row.
I have a problem where 12 digit numbers that start out as varchar in
the database, end up in scientific notation in the spreadsheet. From
the help, I see where this is the default for 12 digit numbers or
higher.
How can disable this so they display as regular character data? We
send these spreadsheets to clients so the appearance is important. We
recently migrated from 97 to 2003 - this appears to be a new feature
in 2003 version.
Thanks for any assistance...charlie

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default prevent schientific notation

Set the format of the columns to Number rather than General. Although this
may cause problems if you they aren't integers. Alternatively, if these are
product/serial numbers that can have leading zeros you might want Text
formatting instead.

Cheers, Pete

" wrote:

I have a vb program that takes a skeleton xls file with a few rows of
headers and an sql command to obtaiin data, and then populates the
spreadsheet. The number of rows and columns varies as does the type of
data in each row.
I have a problem where 12 digit numbers that start out as varchar in
the database, end up in scientific notation in the spreadsheet. From
the help, I see where this is the default for 12 digit numbers or
higher.
How can disable this so they display as regular character data? We
send these spreadsheets to clients so the appearance is important. We
recently migrated from 97 to 2003 - this appears to be a new feature
in 2003 version.
Thanks for any assistance...charlie


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
HOW CAN I PREVENT EXCEL FILES FROM BEING DELETED OR PREVENT TRASH ROB Excel Discussion (Misc queries) 2 April 2nd 07 01:13 PM
How to prevent General format from using scientific notation? jim swanson Excel Discussion (Misc queries) 1 March 28th 07 02:34 PM
Prevent Scientific Notation robbyp Excel Discussion (Misc queries) 3 February 20th 07 03:13 PM
scientific notation T.Reisz Excel Discussion (Misc queries) 4 June 12th 06 01:59 PM
Scientific notation Clive Excel Discussion (Misc queries) 2 February 8th 05 11:38 PM


All times are GMT +1. The time now is 12:30 AM.

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"