Very new to VBA Macros, would really appreciate some help.
Basically, I found (and tweaked to the best of my limited ability) the code below so that when I select a pie chart and run the macro "PieColors", it colors slices according to their labels. It seemed to work most of the time for the last few weeks, until this week.
Suddenly one or two of slices in the list below ("none" for example) won't change color when the macro is run. I went back into the VBA editor and got the error, "Run-time error '91': Object variable or With Block variable not set" in the line beginning with "NumPoints = ActiveChart...". In my limited scope of knowledge of programming, I know that means I didn't define a variable somewhere (duh, right?), but I don't know what I need to do to fix it.
Any help would be greatly appreciated. Thank you!
Bookmarks