tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,147
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everybody,
I need some help with this macro please,
it currently has set values for MinimumScale and MaximumScale, but i need these to change
so Id like to reference these to a cell in the workbook
if i was writing this in english it would read something like this:
ActiveChart.Axes(xlValue).MinimumScale = Activesheet.Cell. EU2
ActiveChart.Axes(xlValue).MaximumScale =Activesheet.Cell. Ev2
(This however doesnt work)
Please would someone help me as I very stuck on this at the moment
Thanks
Tony
I need some help with this macro please,
it currently has set values for MinimumScale and MaximumScale, but i need these to change
so Id like to reference these to a cell in the workbook
if i was writing this in english it would read something like this:
ActiveChart.Axes(xlValue).MinimumScale = Activesheet.Cell. EU2
ActiveChart.Axes(xlValue).MaximumScale =Activesheet.Cell. Ev2
(This however doesnt work)
Code:
Sub Macro16()
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.Axes(xlValue).Select
ActiveChart.Axes(xlValue).MinimumScale = 5
ActiveChart.Axes(xlValue).MaximumScale = 7
End Sub
Please would someone help me as I very stuck on this at the moment
Thanks
Tony