- ©«¤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
|
¹ï¤£°_¡I ¤WªþªºÀɮ׬O OK ªº¡A¥u¬O§Ú·Q¸Ñ¶}§Ú¦b³B²z¤Wªº¤@¨ÇºÃ´b¡A©Ò¥H±N¦¹½g¤À¨É¦P®É
§ï¦¨µo°Ý¡A ¤@Á|Âù±o (¤@³½¨â¦Y)¡C
ActiveSheet.Shapes.AddChart.Select
With ActiveChart
.SetSourceData Source:=Range("¤u§@ªí1!$B$1:¤u§@ªí1!$B$" & totalRows & ", ¤u§@ªí1!$C$1:¤u§@ªí1!$F$" & totalRows)
.ChartType = xlStockOHLC
With .ChartGroups(1)
.AxisGroup = 1
.
.
.
End With
.SeriesCollection.Add Source:=Range("¤u§@ªí1!$G$2:¤u§@ªí1!$I$" & totalRows)
With .SeriesCollection(5) ' ¦¨¥æ¶q
.AxisGroup = 2
.Name = "=¤u§@ªí1!$G$1"
.ChartType = xlColumnClustered
.
.
.
End With
¥H¤Wµ{¦¡½X¹B§@³£ OK¡A ¦ý¬O¦pªG§Ú§â¦¨¥æ¶qªº³¡¤À¥Î¤U¦C¤è¦¡ªí¹F¡A«o·|¥X²{¿ù»~°T®§¡C
With .ChartGroups(2)
.AxisGroup = 2
.
.
End With
Ãø¹D .SeriesCollection.Add Source:=Range("¤u§@ªí1!$G$2:¤u§@ªí1!$I$" & totalRows) ¤§«Å§i¡A
¤£´N¬O²Ä¤G²Õ (Group 2) ¶Ü¡H
¦Ó¥B¦pªG With .SeriesCollection(6) ¥H¤Î With .SeriesCollection(7) ¤º³£¤@¨Ö¥[¤W .AxisGroup = 2
¤]·|¦³¿ù»~°T®§¡A¨º·|¬O¬Æ»ò±¡ªp¡H »yªk¤£¥¿½T¡B©Î¬O¦³»yªk¨î¡H
§Úµo²{¥un¬OªÑ²¼¹Ï¥[¤W¨ä¥¦¹Ïªíªº²Õ¦X¤ñ¸û·|¦³Ãø«×¡C
ÁÂÁ«ü¾É¡I |
|