#1   Report Post  
Posted to microsoft.public.excel.programming
FGM FGM is offline
external usenet poster
 
Posts: 35
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default 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

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
Lock Cell Format - Allow copy and paste of data without format change Chris12InKC Excel Worksheet Functions 2 May 9th 23 07:42 PM
cell format - remove cell format pattern without effecting colors Bas Excel Discussion (Misc queries) 1 March 23rd 09 02:54 PM
Can cell format come from and change with reference cell format jclouse Excel Discussion (Misc queries) 1 November 29th 06 03:20 AM
Custom Cell format to mimic time format [email protected] Excel Discussion (Misc queries) 6 November 7th 06 09:17 PM
How do I copy data in single cell format to a merged cell format Paul Excel Discussion (Misc queries) 1 June 27th 05 11:00 AM


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

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"