View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Marc[_26_] Marc[_26_] is offline
external usenet poster
 
Posts: 14
Default Formatting problem

Thanks Gary
But my entire column is formatted as Text
According to your code it is formatted in to General
I want to keep the column in Text format and make every cell value in to
text


"Gary''s Student" wrote in message
...
To fix existing cells, selec them and run:

Sub marc()
For Each r In Selection
With r
.NumberFormat = "General"
.Value = .Value
End With
Next
End Sub

--
Gary''s Student - gsnu200817


"Marc" wrote:

Thanks Mike
But the problem is already there


"Mike H" wrote in message
...
Marc,

This is Excel telling you that you have numbers stored as text. To get
rid
of the green triangle:-

Tools|Options - Error Checking tab - Un-check 'numbers stored as text'

Mike

"Marc" wrote:

In my excel sheet there is a General formatted column
When entering numbers in to the column it stores as numbers with
aligning
right side
Then I format the entire column as text, after that all values are
left
aligned
Then I entered a new value in to the column, it stores with green
colour
hyphen
Previously entered values are not like that. If I edit the previously
entered value then that value also stores with green colour hyphen.
What is the reason for this and how to avoid this
Please Help