ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Read back the source data from chart (https://www.excelbanter.com/excel-programming/444782-read-back-source-data-chart.html)

danny tang

Read back the source data from chart
 
Hi,
I would like to make a function to auto adjust the chart x/y-axis range/div.. by the actual data. However, may I know how VBA can trace back the source data (directly)? Also those charts are make by different data sheets (same workbook).

actually, i wrote function before, which required user to select the sheet name first, then macro will share the x/y-axis title from data sheet (seems indirect method but works) and then calculate the min/max. However, this case now is the charts from different sheet. any ideas?

thanks for your comments in advance.


All times are GMT +1. The time now is 12:19 AM.

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