Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Storing numbers in text fields

Hi,

I have a column which I format as follows -

Columns("B:D").NumberFormat = "@"

The issue is that some of the fields in this column contain numbers
and excel is flagging the fact that numbers are being saved as text. I
don't wan't excel to do this, what should I do?

Public value As String
...
Cells(RowCount, 3) = value

My column -

IDs

9899389
9A37884
9882D23
9288930

Thanks,

Barry.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Storing numbers in text fields

Barry,

You could always use the following:

Application.ErrorCheckingOptions.NumberAsText = False

but remember to switch it back to true at the end of your code if
being used on other people's machines.

Regards,

Toyin.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Storing numbers in text fields

Yo Barry ...

Did you try either:

Cells(RowCount, 3).value = Cstr(value)
Cells(RowCount, 3).value = Format(value)

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
Strategy Needed for storing data in these fields [email protected] Excel Discussion (Misc queries) 3 June 10th 09 10:25 PM
Excel SHOULD NOT AUTO-CHANGE formated text fields to DATE FIELDS! PSSSD Excel Worksheet Functions 2 August 8th 06 09:31 PM
Text fields with numbers in .csv file Pedro Gonçalves Excel Programming 3 July 12th 06 11:42 AM
adding cells after stripping numbers out of text fields Alan Excel Discussion (Misc queries) 1 August 24th 05 08:22 PM
storing numbers within the macro Chris Excel Programming 0 October 27th 03 06:04 PM


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