C
Carol Olson
I have some VBA code that was used in Excel 2003 to reposition some chart
labels. It ran fine in Excel 2003. I'm now running the same code in Excel
2007.
The macro uses the Series Collection Datalabels(index).Left in order to
calculate the position to move the label. I'm encountering some strange
behavior and wondered if anyone else ran into this. If I run the macro as
usual (F5), I get a different value returned from Datalabels(index).Left
versus if I run the macro stepping into it (F8).
In other words, I get the correct result when I step into the macro (F8)
versus running it(F5).
Hope this makes senses.
labels. It ran fine in Excel 2003. I'm now running the same code in Excel
2007.
The macro uses the Series Collection Datalabels(index).Left in order to
calculate the position to move the label. I'm encountering some strange
behavior and wondered if anyone else ran into this. If I run the macro as
usual (F5), I get a different value returned from Datalabels(index).Left
versus if I run the macro stepping into it (F8).
In other words, I get the correct result when I step into the macro (F8)
versus running it(F5).
Hope this makes senses.