Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
Hi
I am tring to get a macro to change the maximum scale value in a chart, based on a cell in the data sheet. In this case G5 in data "sheet1". In cell G5 , I have the max formulaI have named the chart "test". I have pasted the code in a module, and if, with help, it works, will paste the second code in "This workbook". As you no doubt guessed, I am not too familar with VBA, and have managed to get hold of this code, however, it is failing. Help appriciated Regards Sub UpdateScale() ActiveSheet.ChartObjects("test").Activate With ActiveChart.Axes(xlValue) .MinimumScale = 0 .MaximumScale = Range("G5").Value End With End Sub Private Sub Worksheet_Change(ByVal Target As Range) mySelection = ActiveWindow.RangeSelection.Address UpdateScale Range(mySelection).Select End Sub -- Message posted via http://www.officekb.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how change the legend scale of surface chart in XL2007 | Charts and Charting in Excel | |||
How to draw chart: log scale on X axis, natural scale on y axis? | Charts and Charting in Excel | |||
Can't change the scale of values on a y-axis on a line chart | Charts and Charting in Excel | |||
how can I change the scale of the numbers in my chart data table? | Charts and Charting in Excel | |||
How to change maximum scale of a logarithmic chart on an EXCELL ch | Charts and Charting in Excel |