Excel 2007 allows you to format your lines in an XYscatter chart with direction arrows. I cant find the proper method for programming that function in VBA. Can anyone help point me to where this might be documented or tell me the secret.
On a different note:
As a new vba for excel 2007 programmer I've never had so much trouble figuring out how to do simple stuff. I have not found "the" source that documents fully each function/method/object that are used in excel VBA.
Here's one thats been bothering me:
For instance, when you are looping through the columns in a range like this:
dim myselection as range
dim cols as range
for each cols in myselection.columns
{bla bla bla}
next cols
Doesn't the "cols" object have an indexing variable available. I've resorted to adding my own index counter for each loop but surely there has to be an iteration count in the object??
Last edited by kb9nvh; 03-11-2011 at 02:22 PM.
End arrow head
No built in index when for each looping. You need to maintain one if required.ActiveChart.SeriesCollection(1).Format.Line.EndArrowheadStyle = msoArrowheadTriangle
Man, Thanks so much!!!
Also, on the indexing, maybe I'm just stuck in my old ways of thinking and maybe I shouldn't really need that index at all but there has been so many times that I decide I could take care of some other task while iterating through columns or whatever but I need to know "odd or even" or want to look at every third one or whatever and I'm stuck without a counter.
Thanks again!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks