Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel ApplyDataLabels property
Message
 
 
To
06/06/2001 16:33:00
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00516033
Message ID:
00516318
Views:
9
>ok, I give up. I can't get this part to run. It fails in the
>"SeriesCollection(1).ApplyDataLabels.Type=3"
>saying it does not evaluate to an object.

ApplyDataLabels is a method that takes up to four parameters, only the first of which is usually used. The first parameter is the Type parameter. Try:
oBook.ActiveChart.SeriesCollection(1).ApplyDataLabels(3)
Even better, use #DEFINES to make sense of VBA's constant names, which makes your code easier to read when you need to maintain it:
#DEFINE xlDataLabelsShowPercent 3
oBook.ActiveChart.SeriesCollection(1).ApplyDataLabels(xlDataLabelsShowPercent)
Hope this helps.

- della
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform