Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel 03 to Excel 07
I am moving from Excel 03 to Excel 07 in Office 07. I have code that
automates the creation of excel charts, and one line is coughing up an error. This line is where I am selecting a seriescollection to set datalabels. e.g., ActiveChart.SeriesCollection(1).DataLabels.Select( ) The error indicates the object is not defined. This is code that has run for years in the older version of Excel, so I have to think the syntax for setting labels must have changed. Anyone know of a solution, and anyone know of reference that can help me make this transition, i.e., somewhere that documents VBA syntax changes? Many thanks for any ideas on this, Mark |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel 03 to Excel 07
Try Activesheet.chartobjects(1).select 'OR 'Activesheet.chartobjects("<charname').select If ActiveChart.SeriesCollection(1).HasDataLabels = True Then ActiveChart.SeriesCollection(1).DataLabels.Select End If If this post helps click Yes --------------- Jacob Skaria "Markus" wrote: I am moving from Excel 03 to Excel 07 in Office 07. I have code that automates the creation of excel charts, and one line is coughing up an error. This line is where I am selecting a seriescollection to set datalabels. e.g., ActiveChart.SeriesCollection(1).DataLabels.Select( ) The error indicates the object is not defined. This is code that has run for years in the older version of Excel, so I have to think the syntax for setting labels must have changed. Anyone know of a solution, and anyone know of reference that can help me make this transition, i.e., somewhere that documents VBA syntax changes? Many thanks for any ideas on this, Mark |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Application coded in excel 2000 when used in excel 2003 excel doesnot perform well and takes double the time to give the output | Excel Programming | |||
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 | Excel Programming | |||
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 | Excel Programming | |||
Need to Save Excel XML as just Excel file for user to open in Excel 2000 | Excel Programming | |||
Excel 2003 crashes loading excel files created Excel 2000 | Excel Discussion (Misc queries) |