ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¦p¦óÅý Chart ª«¥óÅã¥Ü¦b©T©wªºµøµ¡¦ì¸m ?

¦p¦óÅý Chart ª«¥óÅã¥Ü¦b©T©wªºµøµ¡¦ì¸m ?

¿ý»s¨Ã­×§ï¥¨¶°¦p¤U  Set Chart_1 = ActiveSheet.ChartObjects.Add(Left:=100, Width:=300, Top:=75, Height:=200)¡A
°ÝÃD¬O¥u­n­¶­±¤@©¹¤U©Ô¡AChart_1 ´N·|³vº¥¬Ý¤£¨ì¡A¦p¦óÅý Chart ª«¥ó©T©w¦bµøµ¡ªº¬Y­Ó¦ì¸m?©ÎªÌ»¡¦p¦óÀHµÛ­¶­±¤U©Ô¦Ó§ïÅÜ Chart ª«¥óªº¦ì¸m¦b¥iµøªº½d³ò?
¦b¦¹¥ýÁ¹L¦U¦ì°ª¤âªº«üÂI~~thank you~~

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-6-30 16:20 ½s¿è

¦^´_ 1# heavydog
  1. Sub Ex()
  2.     Dim Chart_Top As Range, Chart_Bottom As Range
  3.     With ActiveSheet.ChartObjects.Add(Left:=100, Width:=300, Top:=75, Height:=200)
  4.         Set Chart_Top = .TopLeftCell                                '¶Ç¦^ Range ª«¥ó¡A¸Óª«¥ó¥Nªí«ü©wª«¥ó¥ª¤W¨¤¤U­±ªºÀx¦s®æ
  5.         Set Chart_Bottom = .BottomRightCell                         '¶Ç¦^ Range ª«¥ó¡A¸Óª«¥ó¥Nªíª«¥ó¥k¤U¨¤ªºÀx¦s®æ
  6.     End With
  7.     With ActiveWindow
  8.               .ScrollRow = Chart_Top.Row                                  '¶Ç¦^©Î³]©w«ü©wµ¡®æ©Îµøµ¡³Ì¤W­±ªº¦C¼Æ
  9.         .ScrollColumn = Chart_Top.Column                            '¶Ç¦^©Î³]©w«ü©wµ¡®æ©Îµøµ¡³Ì¤W­±ªºÄæ¼Æ
  10.         .SplitRow = Chart_Bottom.Row - Chart_Top.Row + 1            '¶Ç¦^©Î³]©w±N«ü©wµøµ¡¤À³Î¦¨µ¡®æ³Bªº¦C¼Æ (¤À³Î½u¥H¤Wªº¦C¼Æ)¡C
  11.         .SplitColumn = Chart_Bottom.Column - Chart_Top.Column + 1   '¶Ç¦^©Î³]©w±N«ü©wµøµ¡¤À³Î¦¨µ¡®æ³Bªºøó¼Æ (¤À³Î½u¥H¤Wªºøó¼Æ)¡C
  12.         .FreezePanes = True                                         '¦pªG¤À³Îµ¡®æ³Q­áµ²«h¬° True
  13.     End With
  14. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥Î¤À³Îµ¡¤f¨Ó©T©w,§®
ss

TOP

¬Ý¤£¬O«ÜÀ´¡A¥i¯à¬O¹Ïªí¨S¦³¥s¥X¨Óªº­ì¦]

¤£¹L¯uªº¯à°÷³o¼Ë¤l©T©w «Ü´Î­C!!

·PÁª©¥D¤À¨É¡C

TOP

·PÁ GBKEE ¶W¯Åª©¥Dªº¦^À³~~¦]¬°­¶­±¥»¨Ó´N¤w¤À³Î­áµ²¡A¬Ý¤F GBKEE ¤j¤jªº±Ð¾Ç«á¡AµoıScrollRow©MScrollColumn¥¿¬O§Ú»Ý­nªºªF¦è¡A©ó¬O¦bWorksheet_SelectionChange¨Æ¥ó¤¤±NScrollRow.ScrollColumn«üµ¹¤@­Órange¡A¦A±N¸ÓrangeªºTop,Left«üµ¹ Chart ª«¥ó¡Aperfect~~
¥¿¬O§Ú­nªº..thank you~~

TOP

        ÀR«ä¦Û¦b : µÊ®ð¼L¤Ú¤£¦n¡A¤ß¦a¦A¦n¤]¤£¯àºâ¬O¦n¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD