Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how am i able to store a number as text? (ADO related)

Hi everyone,

I am trying to store numbers as text programmatically in excel. (I don't
know how to store data was stored before, this is for fact finding)

The background error checking in excel has detected some cells have been
stored as text. i can use SQL to search on these values and the value
appears as text correctly.

If I edit the number to a text value the data becomes numeric by default,
though i've specified 'text'.

ActiveCell.Value = '102' - will store the data as a numeric, and am unable
to search for the data using an SQL query :-(

Thank you in advance.
Bethany


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how am i able to store a number as text? (ADO related)

:-) *yay* solved problem

1. If the value is emptied first.
2. Set the format text.
3. Put value in cell.

"Beth" wrote in message
...
Hi everyone,

I am trying to store numbers as text programmatically in excel. (I don't
know how to store data was stored before, this is for fact finding)

The background error checking in excel has detected some cells have been
stored as text. i can use SQL to search on these values and the value
appears as text correctly.

If I edit the number to a text value the data becomes numeric by default,
though i've specified 'text'.

ActiveCell.Value = '102' - will store the data as a numeric, and am unable
to search for the data using an SQL query :-(

Thank you in advance.
Bethany




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 do I store frequently used text in Excel for auto-complete? KeithyBX Excel Discussion (Misc queries) 4 July 16th 08 01:43 AM
Need help with Excel 2000 text-related functions Joan A Excel Worksheet Functions 7 February 3rd 08 10:36 PM
store inventory sheet(ex:sports equipment store) vardan Excel Worksheet Functions 1 October 11th 06 12:51 AM
Access data base is able to store any number of records clearcell Excel Worksheet Functions 0 November 8th 05 08:45 PM
Store row number after a find Alan Excel Discussion (Misc queries) 6 August 30th 05 01:46 PM


All times are GMT +1. The time now is 12:32 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"