½Ð¦U¦ì¤j¤jÀ°¦£×§ï«Ø¥ß®r¤J¹Ïªí¿ù»~»yªk
- ©«¤l
- 33
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 37
- ÂI¦W
- 0
- §@·~¨t²Î
- w7
- ³nÅ骩¥»
- pro
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2012-6-20
- ³Ì«áµn¿ý
- 2019-5-24
|
c_c_lai ¤j¤j¦^Ū§Aªº©«¤F¬Ý¤FGBKEE«e½úªº¦^ÂШ䤤¤U¦Cªºµ{¦¡
03. With ActiveSheet.ChartObjects(oShape.Name).Chart
§ï¥H¥Î¤U¦C
With WORKSHEETS(WR).ChartObjects(1).Chart
´N¥i¥H°õ¦æµ{¦¡ì¨Ó¬Oª«¥óªº»yªk¿ù»~
08. End With
·PÁ ¨â¦ì¤jôªº¨ó§U |
|
|
|
|
|
|
- ©«¤l
- 33
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 37
- ÂI¦W
- 0
- §@·~¨t²Î
- w7
- ³nÅ骩¥»
- pro
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2012-6-20
- ³Ì«áµn¿ý
- 2019-5-24
|
c_c_lai ¤j¤jÁÂÁÂÀ°¦£ ³oµ{¦¡¹ï§Ú¨Ó»¡ÁÙ¤ÓÃø¤F.§Ú¥u·Q¥Îª½½u¹Ï,¦b¨C¤@¤u§@ªí³Ì«áÀx¦s®æWorksheets(wr).Range("A" & chart_sr & " :I" & chart_end)ªº½d³ò¥[¤J¹Ïªí,¸ê®Æ¨Ó·½¬°¦Pªí®æªº
Worksheets(wr). RANRE ("A" & z_sr & " :C" & xlRow),¦]¬°¦³10Ó¤u§@ªí³£n¥[¤J¥B¨C¤@Ó¤u§@ªí³Ì«áªÅÀx¦s®æ¤£¤@©w©Ò¥H¦C¼Æ¥ÎÅܼƤ覡,¤u§@ªíWorksheets(wr). wr¤]¬OÅܼÆ.¦]¬°§Ú·Q¥Î°j°é¤è¦¡Åý©Ò¦³¤u§@ªí¤@¦¸§¹¦¨,
ps RANRE -> .RANGE ·PÁ´£¿ô,½T¹ê²Ê¤ß¤F |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 1# lamihsuen
¶K¤W GBKEE «ü¾É«e½ú´¿¸gµ¹§Úªº½d¨Ò¡A³ö¨Ñ©p°Ñ¦Ò¡A§Æ±æ¹ï©p·|¦³¹ê½èªºÀ°§U¡C
¤S¡B©p¥´¿ù¦r¤F .RANRE -> .RANGE¡C (ºâ²Ê¤ß§a¡I:o )- 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("A2").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 |
|
|
|
|
|
|