Trying to get one last macro to work. What the macro is suppose to do is resize the Y axis on two different charts based on the data range of the entered data.
I do understand that Libre macros are written in Basic and i have no clue how to change the VBA to basic.
Here is the excel VBA
Sub Set_My_Axis_Values()
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.Axes(xlValue).Select
'Setting y-axis min and max values
ActiveChart.Axes(xlValue).MinimumScale = ActiveSheet.Range("B22").Value
ActiveChart.Axes(xlValue).MaximumScale = ActiveSheet.Range("B23").Value
ActiveSheet.ChartObjects("Chart 2").Activate
ActiveChart.Axes(xlValue).Select
'Setting y-axis min and max values
ActiveChart.Axes(xlValue).MinimumScale = ActiveSheet.Range("B22").Value
ActiveChart.Axes(xlValue).MaximumScale = ActiveSheet.Range("B23").Value
Range("A1").Select
Range("A1").Activate
End Sub
[erAck: edited to format code as code, see This is the guide - How to use the Ask site? - #6 by erAck]