Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I want to write a function which loops through a column and creates a chart. for some reason it isnt working and it dont gives an error at all. any ideas what is wrong? ---cut--- Sub DiagrammErstellen() Dim oldi oldi = 2 For i = 2 To Application.WorksheetFunction.CountA("A:A") Step 10 Charts.Add ActiveChart.SetSourceData Source:=Sheets("Tabelle1").Range(oldi + ":" + i + "," + oldi + ":" + i + "") 'ActiveChart.SetSourceData Source:=Sheets("Tabelle1").Range("A2:A7,B2:B7") ActiveChart.Location Whe=xlLocationAsNewSheet Charts.Add oldi = i Next End Sub ---cut--- -- A.S. ------------------------------------------------------------------------ A.S.'s Profile: http://www.excelforum.com/member.php...o&userid=26003 View this thread: http://www.excelforum.com/showthread...hreadid=393646 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert Calculated Field (wrong Qty*Price = wrong Amount) | Excel Discussion (Misc queries) | |||
Min Max What's Wrong? | Excel Worksheet Functions | |||
wHAT AM i DOING wrong | Excel Worksheet Functions | |||
Where am I going wrong? | Excel Discussion (Misc queries) | |||
What's Wrong with This? | Excel Programming |