Declare Function RefreshDiagram(ByVal strTextFileName As String) As Boolean
Declare Function LoadData(ByVal strFileName As String) As Boolean
Declare Function DrawDiagram(ByVal strTextFileName As String) As Boolean
Declare Function DrawTextBox(ByVal GroupShape As Shape, ByVal x1 As Double, ByVal y1 As Double, ByVal x2 As Double, ByVal y2 As Double, ByVal strText As String, ByVal lTextSize As Long, ByVal lTextStyle As Long, ByVal intHAlign As Byte) As Shape
Declare Function CalcScaleStep(ByRef dblMax As Double) As Double
If DiagramDayShape.Shape(i).Name <> "DescX" And DiagramDayShape.Shape(i).Name <> "DescY" And DiagramDayShape.Shape(i).Name <> "OX" And DiagramDayShape.Shape(i).Name <> "OY" Then
DiagramDayShape.RemoveShape(i)
End If
Next
For i=DiagramSumShape.ShapesNum() To 1 Step -1
If DiagramSumShape.Shape(i).Name <> "DescX" And DiagramSumShape.Shape(i).Name <> "DescY" And DiagramSumShape.Shape(i).Name <> "OX" And DiagramSumShape.Shape(i).Name <> "OY" Then
Function DrawTextBox(ByVal GroupShape As Shape, ByVal x1 As Double, ByVal y1 As Double, ByVal x2 As Double, ByVal y2 As Double, ByVal strText As String, ByVal lTextSize As Long, ByVal lTextStyle As Long, ByVal intHAlign As Byte) As Shape
Set DrawTextBox= GroupShape.DrawRect(x1, y1, x2, y2)