ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell Format (https://www.excelbanter.com/excel-programming/401053-cell-format.html)

FGM

Cell Format
 
I use a label macro to put labels on chart points ..
Sometimes the data comes in as dates when the text is 4-17. Even if I
format it as text the point labels are dates. How do I get around this.

windows 2000
excel xp

thanks much


JLGWhiz

Cell Format
 
You could try:

Chart1.Series.Points.DataLabels.NumberFormat = "Text"

Change Chart1 to actual.
The data labels would normally pick up the format from the source reference.
If it is not doing it then the above should reset the labels format. I have
not tested it, so it might need some tweaking.

"FGM" wrote:

I use a label macro to put labels on chart points ..
Sometimes the data comes in as dates when the text is 4-17. Even if I
format it as text the point labels are dates. How do I get around this.

windows 2000
excel xp

thanks much



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com