- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 18# lin_6219
³o§ÚˬO¨S¥h¯d·N¡A¬°¤°»ò·|¤£¦P¡A
§Ú¤]¤£²M·¡¡C°®¯Üªþ¤Wµ{¦¡½XÅý§A®Ö¹ï¡G- Sub Test()
- Dim nRow As Integer, ChtObj As ChartObject
- Dim i As Integer, j As Integer, chartname As String
- Dim myMax, myMin, GapNr As Integer
-
- On Error Resume Next
-
- With Worksheets("¥Dµe±")
- .ChartObjects.Delete
- .Select
- nRow = Worksheets("ø¹Ï¸ê®Æ").Range("A65536").End(xlUp).Row
- Set ChtObj = Worksheets("¥Dµe±").ChartObjects.Add(1, 1, 450, 250)
-
- With ChtObj.Chart
- ' .SetSourceData Source:=Range("ø¹Ï¸ê®Æ!$A$2:ø¹Ï¸ê®Æ!$A$20, ø¹Ï¸ê®Æ!$F$2:ø¹Ï¸ê®Æ!$F$20")
- .SetSourceData Source:=Range("ø¹Ï¸ê®Æ!$A$2:ø¹Ï¸ê®Æ!$A$" & CStr(nRow) & ", ø¹Ï¸ê®Æ!$F$2:ø¹Ï¸ê®Æ!$F$" & CStr(nRow))
- .ChartType = xlXYScatterLinesNoMarkers
- .HasTitle = True
- .ChartTitle.Characters.Text = "K½u»P¦¨¥æ¶q¹Ï"
-
- With .SeriesCollection(1)
- .Border.ColorIndex = 7
- .Name = "=ø¹Ï¸ê®Æ!$F$1"
- End With
-
- With .Axes(xlCategory) ' X®y¼Ð¶b (®É¶¡¶b)
- ' .CategoryType = xlCategoryScale
- ' .TickLabelSpacing = 1 ' ¼Ð¥Ü¶¡¶Z
- .TickLabels.NumberFormatLocal = "yyyy/m/d"
- .TickLabels.Font.ColorIndex = 5 ' Blue Color
- ' .TickLabels.Orientation = xlTickLabelOrientationUpward
- End With
- End With
- End With
- End Sub
½Æ»s¥N½X |
|