Hi,
Here is what I'm doing. Please bear with me for a moment and I'll try to cut the long story short.
I set up a PT to get the percentage of certain products using the feature of '% Of Row', which means you have to have all the products in a market segment, or the percentage would be exaggerated. But the users of the application do not want to see all the products. Excel PT does not have the feature of giving you the right % with fewer products, I guess.
What I did is to leave the PT the way it is, copy part of the products I need from the PT to another location and make it a table (I call it "dummy table") and graph it. This way, I can give users the products they want and the calc of the percentage would be correct. But I have to link the dummy table to the PT behind it by a bunch of Comboboxes and Buttons.
Here is my problem. Everytime I make some change on Named Ranges, which are for the dropdowns of Comboboxes and they are on the same sheet of the dummy tab and the PT, I will get errors like '1004' or '5: Invalid procedure call...' or something else because of the worksheet events. I tried 'Application.EnableEvents=False' and others, they won't work.
Or I can probably move the Named Ranges away from the Sheet where the PT and the dummy tab are located.
What would you think? Any better way of doing it: keep the dummy, PT, and the Named Ranges on the same sheet without triggering errors?
Thanks in advance.
Here is what I'm doing. Please bear with me for a moment and I'll try to cut the long story short.
I set up a PT to get the percentage of certain products using the feature of '% Of Row', which means you have to have all the products in a market segment, or the percentage would be exaggerated. But the users of the application do not want to see all the products. Excel PT does not have the feature of giving you the right % with fewer products, I guess.
What I did is to leave the PT the way it is, copy part of the products I need from the PT to another location and make it a table (I call it "dummy table") and graph it. This way, I can give users the products they want and the calc of the percentage would be correct. But I have to link the dummy table to the PT behind it by a bunch of Comboboxes and Buttons.
Here is my problem. Everytime I make some change on Named Ranges, which are for the dropdowns of Comboboxes and they are on the same sheet of the dummy tab and the PT, I will get errors like '1004' or '5: Invalid procedure call...' or something else because of the worksheet events. I tried 'Application.EnableEvents=False' and others, they won't work.
Or I can probably move the Named Ranges away from the Sheet where the PT and the dummy tab are located.
What would you think? Any better way of doing it: keep the dummy, PT, and the Named Ranges on the same sheet without triggering errors?
Thanks in advance.