I want to store text such as '001234' in a cell. I have set the number format of this cell to text. After storing, an error 'Number Stored as Text' is shown in the form of a green triangle at the top left corner of the cell. It is very disturbing and I want it to be removed programmatically.
相关问题
- Excel sunburst chart: Some labels missing
- Error handling only works once
- Error handling only works once
- How do I identify what code is generating “ '&
- Excel formula in VBA code
相关文章
- Get column data by Column name and sheet name
- programmatically excel cells to be auto fit width
- <link> onerror do not work in IE
- Unregister a XLL in Excel (VBA)
- Unregister a XLL in Excel (VBA)
- Could not find default endpoint element that refer
- How to prevent excel from truncating numbers in a
- numeric up down control in vba
You can select the range you want to work and then put for example (now added speechmarks):
Consider:
This is a single line of a much larger macro to configure Excel when I begin working on a new computer.
Alternately, instead of formatting the cell as text, you could format the cell as 000000 to get the leading 0's to show.