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

[µo°Ý] ChartObjects¼gªk

[µo°Ý] ChartObjects¼gªk

³Ìªñ»Ý¥Î¨ì¹Ïªí¥\¯à
¤u§@ªí("Sheet1")¤¤¤w¦³3±i¹Ïªí, ¸Ó«ç»ò§Q¥ÎVBA¤À§O±N¨ä½Æ»s¨ì¤u§@ªí"M1", "M2", "M3"?
­Y¬O§Æ±æ3±i¹Ïªí¤wºI¹Ï¤è¦¡½Æ»s¤S¸Ó¦p¦ó°µ©O?§Æ±æ¥ÎºI¹Ï¤è¦¡¬O¬°¤FÁקK¹Ïªí¤¤ªº¼Æ¾Ú³sµ²Åܧó·|³y¦¨¹Ïªí¸òµÛÅÜ°Ê©Ò¥H§Æ±æ¥ÎºI¹Ï¤è¦¡

¦^´_ 1# acdx

¨Ï¥ÎActiveChart.ChartArea.Copy¥i¥H±Nexcel ¤¤ªºchart¦s¦¨¹ÏÀÉ
¦ý¬O·í¦P¤@­Ó¤u§@ªí¤¤¦³¼Æ±i¹Ïªí(¨Ò¦p¦³3±i),¸Ó¦p¦ó¤À§O«ü©w³o3±i¹Ïªí½Æ»s¨ì¤£¦P¤u§@ªí¤¤?

TOP

¦^´_ 2# acdx
  1. Sub ExportChart()
  2. Dim Ct As ChartObject
  3. With ¤u§@ªí1 '¹Ïªí©Ò¦b¤u§@ªí
  4. For Each Ct In .ChartObjects
  5.    Ct.CopyPicture xlScreen, xlPicture '½Æ»s¹Ïªí¬°¹Ï¤ù
  6.   With Worksheets.Add '·s¼W¤u§@ªí
  7.   .Name = Ct.Name '¤u§@ªí¥H¹Ïªí¦WºÙ¬°¦W
  8.   .Paste '¶K¤W¹Ï¤ù
  9.   End With
  10. Next
  11. End With
  12. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 3# Hsieh
¦bFor Each Ct In .ChartObjects·|¥X²{¿ù»~  "¦¹³B»Ý­nª«¥ó"

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2017-6-30 10:24 ½s¿è

¦^´_ 4# acdx
¦]¬°§A¤º©wªí³æªº¦WºÙ (Name) ¤£²Å¡A
  1. With ¤u§@ªí1    '¹Ïªí©Ò¦b¤u§@ªí
½Æ»s¥N½X
©Ò¥H±µ¤U¨Ó¦b°õ¦æ
  1. For Each Ct In .ChartObjects
½Æ»s¥N½X
«K·|¥X²{ "¦¹³B»Ý­nª«¥ó"¡C

¥ç§Y¡A½Ð¥ýÀˬd©ñ¸m¹Ïªíªº­ì¤u§@ªí³æ¦WºÙ¡C

TOP

        ÀR«ä¦Û¦b : ¦³´¼¼z¤~¯à¤À¿ëµ½´c¨¸¥¿¡F¦³Á¾µê¤~¯à«Ø¥ß¬üº¡¤H¥Í¡C
ªð¦^¦Cªí ¤W¤@¥DÃD