next object selection
Dim cobj as ChartObject
for each cobj in Activesheet.ChartObjects
Next cobj
Keep track of the index number of where you are
just to illustrate from the immediate window:
? activesheet.chartobjects.count
4
? activesheet.chartobjects(1).name
Chart 1
? activesheet.chartobjects(3).name
Chart 3
activesheet.chartobjects(2).Select
? selection.name
Chart 2
--
Regards,
Tom Ogilvy
"BorisS" wrote:
had Tom help me previously with following command as part of larger code
activesheet.ChartObjects(1).Chart.Axes(xlValue,xlS econdary).TickLabels.Font.Name
Book Antiqua
This, as I understand it, depends on knowing which object you want to
select. But if I am using '07 (in case it matters) and want the macro to 1)
determine how many objects are on the page and the 2) go through each object
one by one, and complete a set of steps, how would I do that?
Additionally, if I were to want to not have it go through automatically and
do each, what is the final command I can put on my code to say, effectively,
"pick the next object on the sheet."
Thx in advance.
--
Boris
|