formatting datalabel

serbring

Registered User.
Local time
Today, 08:57
Joined
Dec 7, 2008
Messages
17
I plot some values in a pivotchart from a table. I want to format the datalabel like short time 24h. In the table the data are defined as short time 24h.
I have tried to put this code but it doesn't works right.

Code:
With ochart.SeriesCollection(i).DataLabelsCollection.Add
     .NumberFormat = Format(Time, "hh.mm")
end with
thank you ;)
 
I would have thought that you could format the field in Design view using the Properties dialogue box.

By the way. How you format in a table has noting to do with the way it is stored. Dates are stored as decimals. like 23456.001
 
I would have thought that you could format the field in Design view using the Properties dialogue box.

By the way. How you format in a table has noting to do with the way it is stored. Dates are stored as decimals. like 23456.001

thank you for the answer. Yes it is possibile using the propertirs dialogue box but for me i need do it with VBA.
 

Users who are viewing this thread

Back
Top Bottom