Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to make text data export to excel in text format.

How are you sending your numbers to excel?

If your are using some standard method, then you may just have to fix them
after they get there

Dim rng as Range
set rng =Range(cells(1,1),cells(rows.count,1))
rng.Numberformat = "general"
Range("IV1").Value = 1
Range("IV1").copy
rng.pasteSpecial xlValues, xlMultiply
Columns(256).Delete
ActiveSheet.UsedRange

--
Regards,
Tom Ogilvy


wrote in message
ups.com...
Hi,

I am in a similar situation. However, I am sending the numbers from my
VB application to Excel and instead of being stored as numbers they are
getting stored as Text. And if we check the excel, it stay the number
are stored as text and gives the sae rectangle to fix it.

Any help on how we can store the number as numbers directly to excel
rather than changing the fields in excel after they have been entered.

Any idea will be appreciated.

Thanks & Regards
Lovely




Tom Ogilvy wrote:
numbers stored as text is a warning, not a data type.

if the cells contain numbers and they are stored as text, then in later
versions of excel, you can get this indication. The only alternative

is to
store them as numbers, but it sounds like you want them stored as text

and
they are.

--
Regards,
Tom Ogilvy




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 to export plain text from web site to Excel without data conve Jakki Excel Discussion (Misc queries) 1 December 5th 08 12:55 PM
How do I export data in text format with minimum of spaces? [email protected] Excel Discussion (Misc queries) 1 February 12th 07 10:57 PM
How can I export text from excel autoshapes to a text file? Donncha Excel Discussion (Misc queries) 0 July 20th 06 04:58 PM
Export SQL Server data to EXCEL cause all column become TEXT ong Excel Programming 2 September 24th 03 11:49 AM
Export to excel from ASP: Text data interpretation issue Saur Excel Programming 1 August 4th 03 03:53 AM


All times are GMT +1. The time now is 09:34 AM.

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

About Us

"It's about Microsoft Excel"