LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
MJ MJ is offline
external usenet poster
 
Posts: 3
Default Programmatically reading from Excel and formatting

I am doing a small integration between two systems. One system exports
data (I have no control over this) to Excel and I am reading from the
Excel file to use the data elsewhere.

Everything is fine except for one problem: it is possible that I will
have a value for a cell such as "0000". This is intended to be a
string (eventually, when I import it). It shows up in the Excel
interface as "0000", but whenever I read from the cell it comes back
as "0". I guess Excel assumes it is a number.

Is there a way around this where I can get the value of a cell via
code (I am using C# for reference) as is (eg "0000", not "0")?

I am sorry if this has been previously asked, I was having a hard time
getting accurate search results for this topic.

Many thanks.

 
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
suppress conditional formatting programmatically Janis Excel Discussion (Misc queries) 1 September 25th 07 12:06 AM
textbox formatting programmatically malpropio Excel Programming 2 March 8th 07 07:07 PM
How to set programmatically focus on specified Excel row? Jack Excel Programming 7 February 9th 06 07:52 AM
Programmatically check cell formatting WhyIsEverythingSoConfusing Excel Programming 3 November 7th 05 06:26 PM
Programmatically reading data field values from PivotTable Enrico Campidoglio[_2_] Excel Programming 2 July 13th 05 12:32 PM


All times are GMT +1. The time now is 10:44 PM.

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"