I've spent hours researching this question with no results and the Excel object model posted in MSDN has not been any help. I have an Excel spreadsheet with a prebuilt pie chart that is opened by Access and manipulated via VBA. The data to be displayed is populated and the resulting chart is used in an Access report. I did not build the original spreadsheet but I've modified it for my own use. A user pointed out that one of the categories was missing. Right-clicking on the chart and clicking on "select data" brings up the "Select Data Source" dialog box. The categories are listed on the right-hand side. Several were unchecked. I've manually selected them all and now the chart is correct.
The question is: I might want to unselect and (more importantly) re-select one of these categories using VBA code. Can this be done and if so, how? Just point me in the right direction and I'll figure out the rest.
The question is: I might want to unselect and (more importantly) re-select one of these categories using VBA code. Can this be done and if so, how? Just point me in the right direction and I'll figure out the rest.