Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default "Number Formatted As Text": How To Avoid?

I'm populating a worksheet with various types of data.

A couple of columns are different types of CUSIP.

e.g.
---------------------------------------
5180 Case mFieldID_CUSIP_144a
5181 mColNum_CUSIP_144a = curCol
5182 With .Columns(curCol)
5183 .ColumnWidth = mColWid_CUSIP
5184 .NumberFormat = "@"
5189 End With
---------------------------------------

Most CUSIPs are alphameric, but a few are all numeric.

e.g. "774272207"

For those few, the populated sheet shows that little green triangle in the upper
left of the cell and clicking it pops a micro-dialog whose MouseOver presents
"The number in this cell is formatted as text or is proceeded by an apostrophe".

Is there any way for me to avoid inflicting that little chain of events on the
user?
--
PeteCresswell
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default "Number Formatted As Text": How To Avoid?

Could you just format the range as General and let the CUSIP be numeric or text
just as they are??

Or if it's numeric and have to have a certain number of digits, give it a custom
format like: 000000000.

Or you could turn off that error checking with something like:
Application.ErrorCheckingOptions.NumberAsText = False





"(PeteCresswell)" wrote:

I'm populating a worksheet with various types of data.

A couple of columns are different types of CUSIP.

e.g.
---------------------------------------
5180 Case mFieldID_CUSIP_144a
5181 mColNum_CUSIP_144a = curCol
5182 With .Columns(curCol)
5183 .ColumnWidth = mColWid_CUSIP
5184 .NumberFormat = "@"
5189 End With
---------------------------------------

Most CUSIPs are alphameric, but a few are all numeric.

e.g. "774272207"

For those few, the populated sheet shows that little green triangle in the upper
left of the cell and clicking it pops a micro-dialog whose MouseOver presents
"The number in this cell is formatted as text or is proceeded by an apostrophe".

Is there any way for me to avoid inflicting that little chain of events on the
user?
--
PeteCresswell


--

Dave Peterson
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
CSV file doesn't save "xEy" style number as text formatted data [email protected] Excel Discussion (Misc queries) 1 July 30th 08 06:03 PM
VLOOKUP using a number as text to "lookup" a match formatted in a Maxine Excel Worksheet Functions 4 June 30th 08 03:03 AM
Text formatted as "General" in Excel 2002. How do I avoid that? Anant Excel Discussion (Misc queries) 4 August 11th 06 09:16 PM
macro for converting number stored as "text" (or preceeded with ') to "number" formatting markx Excel Programming 1 June 30th 06 12:14 PM
cells formatted to tick when text value "Y" if or null if "N" Jay Excel Discussion (Misc queries) 7 January 13th 06 09:16 AM


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

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"