Returns a cell range containing chart data.
A CellRange object that is a contiguous or noncontiguous (union) range of cells containing chart data.
The GetDataRange method returns null (Nothing in Visual Basic) in the following cases:
- If a chart does not use data from a cell range (e.g., the chart is created using an array of literals);
- If a chart obtains data from cell ranges located on different worksheets.