![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: Glasgow, Scotland
Posts: 8
|
Hi,
I am new to Macro's & VBA so I could use any help or advice. When I run the macro it works 3 times then fails what am I doing wrong? Sub ShowChart() Calculate ActiveSheet.ChartObjects("Chart 5").Chart.SeriesCollection(1).Formula = _ ActiveSheet.ChartObjects("Chart 5").Chart.SeriesCollection(1).Formula ActiveSheet.ChartObjects("Chart 5").Chart.SeriesCollection(2).Formula = _ ActiveSheet.ChartObjects("Chart 5").Chart.SeriesCollection(2).Formula ActiveSheet.ChartObjects("Chart 5").Chart.SeriesCollection(3).Formula = _ ActiveSheet.ChartObjects("Chart 5").Chart.SeriesCollection(3).Formula ActiveSheet.ChartObjects("Chart 5").Chart.SeriesCollection(4).Formula = _ ActiveSheet.ChartObjects("Chart 5").Chart.SeriesCollection(4).Formula DialogSheets("Chart").Show End Sub |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Ahmedabad Gujarat
Posts: 303
|
May be your chartcollection series be exceeding more then 255 characters..
nishith desai http://www.pexcel.com |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: Glasgow, Scotland
Posts: 8
|
Thanks for replying Nishith but I don't really understand. The chart table has multiple groups of 4 series of data so to view any one group of 4 data series I have created a chart which uses relative range name references for the series data and names, the theory was that if I placed my cursor on a cell the related chart would pop up. Does this help to understand my problem?
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|