Here's the modified code without translation:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim myChart As ChartObject
' Check if there is an active chart on the worksheet
If ActiveSheet.ChartObjects.Count > 0 Then
Set myChart = ActiveSheet.ChartObjects(1) ' Assuming there's only one chart on the worksheet
If Target.Address = "$H$7" Then
myChart.Chart.Axes(xlValue).MinimumScale = Range("H7").Value
End If
If Target.Address = "$H$10" Then
myChart.Chart.Axes(xlValue).MaximumScale = Range("H10").Value
End If
End If
End Sub