- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¦^´_ 1# c_c_lai
ª©¥»¤£¹Ï ¤£©ö°»¿ù ,¼gÓ½d¨Ò§A°Ñ¦Ò¤@¤U- Private Sub »s¹Ï()
- Dim xR As Range, Xi As Integer, i As Integer, ¹Ï¦â()
- ¹Ï¦â = Array(4, 6, 8, 10)
- ActiveSheet.ChartObjects.Delete '§R°£¥þ³¡¹Ïªí
- Set xR = Range("F1") '§Q¥ÎxRªº¦ì¸m ³]¤U¹Ïªíªº¦ì¸m
- '¥[¤J·s¹Ïªí ¶·«ü©w 1¥kÃä¦ì¸m, 2°ª«×¦ì¸m, 3¹ÏªíªºWidth, 4¹ÏªíªºHeight
- With ChartObjects.Add(xR.Left, xR.Top, xR.Resize(, 10).Width, xR.Resize(10).Height).Chart
- .ChartType = 51 ' xlLineMarkers '§é½u¹Ï '¹Ïªí ¦¡¼Ë
- With ActiveSheet.Range("A11").CurrentRegion
- Set xR = Union(.Columns(1), .Columns(3), .Columns(5))
- '¸ê®Æ ½d³òªº 1,3,5 Äæ¬°¹Ïªí¸ê®Æ :²Ä1Äæ ¬°x¶bªº¼ÆÈ
- End With
- .SetSourceData Source:=xR, PlotBy:=xlColumns
- '¹Ïªí¸ê®Æ¨Ó·½ : xR ¸ê®Æ¦¡¼Ë: Äæ
-
- .HasTitle = True 'Åã¥Ü ¹Ïªí¼ÐÃD
- .ChartTitle.Characters.Text = ActiveSheet.Name 'HasTitle = False ·|¦³¿ù»~
- .HasAxis(xlCategory, xlPrimary) = False '¤£Åã¥Ü X¶b®y¼Ð
-
- 'HasLegend ¹Ï¨Ò
- .HasLegend = False ' ¨ú®ø Åã¥Ü ¹Ï¨Ò
- ' .Legend.Position = xlTop 'Åã¥Ü ¹Ï¨Ò¦ì¸m
- ' .Axes(xlCategory).TickLabels.NumberFormatLocal = "m/d;@" ' Axes(xlCategory) X®y¼Ð¶b
- ' ** ¤W¤G¦¡ ¶· Åã¥Ü¹Ï¨Ò -> .HasLegend = True
-
- '.SeriesCollection(1).AxisGroup = 2 '·s¼W Y®y¼Ð¶b °Æ®y¼Ð¶b
- ' .SeriesCollection(3)).Delete '§R°£²Ä3¼Æ¦C¸ê®Æ
- With .Axes(xlValue) 'y¶b®æ½u
- .HasMajorGridlines = 0 '¨ú®ø ¥D®æ½u
- .HasMinorGridlines = 0 '¨ú®ø °Æ®æ½u
- End With
- '¥H¤U¤@¨Çµ{¦¡½X §A¥i¥Î¿ý»s±oª¾
- With .ChartArea '¹Ïªíªº¹Ïªí°Ï
- .Border.Weight = 1
- .Border.LineStyle = -1
- .Fill.OneColorGradient Style:=msoGradientHorizontal, Variant:=3, Degree:=0.231372549019608
- .Fill.Visible = True
- .Fill.ForeColor.SchemeColor = ¹Ï¦â(0)
- End With
- With .PlotArea '¹Ïªíªº ø¹Ï°Ï
- .Fill.OneColorGradient Style:=msoGradientHorizontal, Variant:=1, _
- Degree:=0.231372549019608
- .Fill.Visible = True
- .Fill.ForeColor.SchemeColor = ¹Ï¦â(0)
- With .Border
- .ColorIndex = 16
- .Weight = xlThin
- .LineStyle = xlContinuous
- End With
- End With
- For i = 1 To .SeriesCollection.Count
- With .SeriesCollection(i) '¼Æ¦C
- ' .XValues = "" '<-¬°x¶bªº¼ÆÈ ¥i¦b¦¹¨ú®ø
- With .Border
- .ColorIndex = ¹Ï¦â(i)
- .Weight = xlMedium
- .LineStyle = xlContinuous
- End With
- '¥H¤UÄÝ©Ê ¥u¾A¦X §é½u¹Ï
- ' .MarkerBackgroundColorIndex = xlAutomatic
- '.MarkerForegroundColorIndex = xlAutomatic
- '.MarkerStyle = xlNone
- '.Smooth = False
- '.MarkerSize = 7
- '.Shadow = False
- End With
- Next
- End With
- End Sub
½Æ»s¥N½X |
|