If you want to refer to a ChartObject on a Worksheet in your VBA Macros, it helps if you give it a more meaningful name than "Chart1", which is the typical default name.
To Name a ChartObject, do this:
1. Select any cell on the Worksheet containing the chart. (This deselects the ChartArea).
2. Hold down Ctrl and click the Chart - its handles will appear as white squares.
3. Click in the Names box and type the name you require, e.g. "SalesForThisMonth".
4. Press Enter.
The ChartObject is now known as "SalesForThisMonth", and you can reference it in VBA.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.