Hi All,
Can somebody please help me. I have a worksheet with around 20 small charts which is used as a dashboard for my project. What I would like to do is use this in presentations and have the functionality where if I select a chart, a macro takes me to another tab that contains only that chart. When I want to return to the main dashboard, I would like to be able to select the chart on the new tab and a macro returns me to the main tab.
I have most of this complete but the part that is holding me back is that sometimes when the macro takes me from the main dashboard to the tab containing the chart, the chart is already selected, meaning that it cant be reselected without either clicking away or pressing escape.
So I would like either an if formula at the end of the macro taking me from the dashboard to the full page chart that checks whether the chart is selected and if it is then deselects somehow.
Or perhaps there is another way, for example I have used code like this in the past to deselect a chart
< ActiveSheet.ChartObjects("Chart1").TopLeftCell.Select >
but in this instance there are no cells around the chart to deselect to.
Also i have tried code such as
<ActiveSheet.ChartObjects("Chart1").Deselect>
but I havent had the desired results with the Deselect method for some reason.
Thank you in advance.
J
Can somebody please help me. I have a worksheet with around 20 small charts which is used as a dashboard for my project. What I would like to do is use this in presentations and have the functionality where if I select a chart, a macro takes me to another tab that contains only that chart. When I want to return to the main dashboard, I would like to be able to select the chart on the new tab and a macro returns me to the main tab.
I have most of this complete but the part that is holding me back is that sometimes when the macro takes me from the main dashboard to the tab containing the chart, the chart is already selected, meaning that it cant be reselected without either clicking away or pressing escape.
So I would like either an if formula at the end of the macro taking me from the dashboard to the full page chart that checks whether the chart is selected and if it is then deselects somehow.
Or perhaps there is another way, for example I have used code like this in the past to deselect a chart
< ActiveSheet.ChartObjects("Chart1").TopLeftCell.Select >
but in this instance there are no cells around the chart to deselect to.
Also i have tried code such as
<ActiveSheet.ChartObjects("Chart1").Deselect>
but I havent had the desired results with the Deselect method for some reason.
Thank you in advance.
J