tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,139
- Office Version
-
- 365
- 2019
- 2016
- Platform
-
- Windows
Hi everyone,
I have this macro that run anytime the sheet has a change done to it,
however I'd prefer if it only ran anytime Column A cells 4 to 13 were selected
(that's any one of the cells, not all the cells together.)
please can someone show me how to amend it, or what I need to do?
this is the macro:
thanks
Tony
I have this macro that run anytime the sheet has a change done to it,
however I'd prefer if it only ran anytime Column A cells 4 to 13 were selected
(that's any one of the cells, not all the cells together.)
please can someone show me how to amend it, or what I need to do?
this is the macro:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.Axes(xlValue).Select
ActiveChart.Axes(xlValue).MinimumScale = Range("e25")
ActiveChart.Axes(xlValue).MaximumScale = Range("d25")
End Sub
thanks
Tony