ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Legends different when running the macro (https://www.excelbanter.com/excel-programming/423529-legends-different-when-running-macro.html)

Trond

Legends different when running the macro
 
Hi,

Im creating a pivot table and a pivot diagram by vba-programing, and have a
problem with the legends of the series.

I have one series for actual values, named €ś Actual€ť, and one for target
values, named €ś Target€ť. When I run my macro, the legends are just named
€śSeries1€ť and €śSeries2€ť. I have now stepped through the macro by using F8 and
the legends are named €ś Actual€ť and €ś Target€ť.
Why is the result different when I run my macro than when I step through it?


[email protected]

Legends different when running the macro
 
Hi
Some code would help a lot.
regards
Paul

On Feb 6, 7:44*am, Trond wrote:
Hi,

I’m creating a pivot table and a pivot diagram by vba-programing, and have a
problem with the legends of the series.

I have one series for actual values, named “ Actual”, and one for target
values, named “ Target”. When I run my macro, the legends are just named
“Series1” and “Series2”. I have now stepped through the macro by using F8 and
the legends are named “ Actual” and “ Target”.
Why is the result different when I run my macro than when I step through it?




All times are GMT +1. The time now is 12:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com