Mọi người giúp với. làm thay đổi độ dài trung tung đồ thị khi dữ liệu thay đổi. trong file mình giá trị mã trục tung thay đổi theo ô tổng lỗi.
thanks.
Dạ cảm ơn bạn,. nhưng minh muốn là độ dài truc tung(max) bằng giá trị tổng trong bảng dữ liệu, như vậy minh làm sao...thanks
Dim max As Double
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, [c6:c25]) Is Nothing Then
If Target.Value > max Then ActiveSheet.ChartObjects(1).Chart.Axes(xlValue).MaximumScale = Sheet1.[j6]
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, [c6:c25]) Is Nothing Then
max = [j6].Value
End If
End Sub