LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default What is wrong with this?


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Calculated Field (wrong Qty*Price = wrong Amount) Edmund Excel Discussion (Misc queries) 8 October 4th 07 12:13 PM
Min Max What's Wrong? shep Excel Worksheet Functions 4 October 4th 06 09:46 PM
wHAT AM i DOING wrong DMB Excel Worksheet Functions 3 December 27th 05 05:41 PM
Where am I going wrong? Pank Excel Discussion (Misc queries) 2 July 13th 05 01:05 PM
What's Wrong with This? D[_6_] Excel Programming 9 June 18th 04 05:50 PM


All times are GMT +1. The time now is 08:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"