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

[µo°Ý] Excel VBA ¨ú®ø¹Ïªí¿ï¨ú°Ê§@ µ{¦¡½X½Ð±Ð

[µo°Ý] Excel VBA ¨ú®ø¹Ïªí¿ï¨ú°Ê§@ µ{¦¡½X½Ð±Ð

½Ð±Ð¦U¦ì¥ý¶i¡A§Ú¦b¨Ï¥ÎVBAªº®É­Ô¡A¸g±`·|©ó¸ê®Æ¤ÀªR«á¡A§ó·s¹Ïªí¼ÐÃDµ¥¸ê®Æ
¦ý§ó·s§¹«á¡A§Æ±æExcelµe­±¯à°÷°±¯d¦b ¸Ó¹Ïªí ¥¼³Q¿ï¨úªº±¡ªp¡A
µ{¦¡½X¨Ï¥Î     ActiveChart.Deselect
¦ý¦n¹³¨S¦³¤ÏÀ³¡Aµ{¦¡°õ¦æ§¹«á¡AÁÙ¬O°±¯d¦b³Q¿ï¨úªº±¡ªp
¦pªþ¥óªº½d¨Ò....
¤£ª¾¦³µL ¥ý¶i ¥i¥H«üÂI¤@¤U¡AÁÂÁÂ
JS

test.rar (14.6 KB)

¦^´_ 1# jsleee
§Aªºµ{¦¡½X
  1. Sub test()
  2.     Sheets("chart1").Select         '«ü©wª«¥ó"chart1"
  3.     ActiveChart.ChartTitle.Select
  4.     Selection.Characters.Text = "¼Æ¶q¤ÀªR"
  5.     ActiveChart.ChartArea.Select    '¿ï¨ú¤F:¥þ³¡¹Ïªí°Ï°ì
  6.     ActiveChart.Deselect            '¨ú®ø¹ï«ü©w¹Ïªíªº¿ï©w¡C
  7.     ActiveWindow.Zoom = True
  8.     '¤§«á´N¯d¦bSheets("chart1") ¹Ïªí(¤u§@ªí)
  9.     '¤£ª¾§A»¡:  "µ{¦¡°õ¦æ§¹«á¡AÁÙ¬O°±¯d¦b³Q¿ï¨úªº±¡ªp"
  10.     '¬O¦ó·N«ä??
  11. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# GBKEE
¥Lªº·N«ä¬O«ü¡A·í¹Ïªí³B²z§¹²¦«á¡A
§Yµ{¦¡°õ¦æ§¹«á¡ACursor ÁÙ¬O°±¯d¦b ¹Ïªí¤W¡C
¦¹®É¦pªG¤£¤p¤ß«ö¤F DEL Áä¡A¹Ïªí«K·|¤£¸g·N³Q§R°£±¼¤F¡C

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-9-21 17:57 ½s¿è

¦^´_ 3# c_c_lai
1#  µ{¦¡°õ¦æ§¹¦¨«á. µe­±·|¯d¦bSheets("chart1")¹Ïªí(¤u§@ªí),
ActiveChart.Deselect , ¤w¨ú®ø¹ï«ü©w¹Ïªíªº¿ï©w¡C
¨Ã¨S¦³¿ï¨ú¹Ïªí¤Wªº¥ô¦óª«¥ó,¤£·|¦³§A»¡ªº¤£¤p¤ßªº§R°£±¼¹Ïªí¤Wªº¥ô¦óª«¥ó.
©Ò¥H§Ú»¡:  ¤£ª¾§A»¡:  "µ{¦¡°õ¦æ§¹«á¡AÁÙ¬O°±¯d¦b³Q¿ï¨úªº±¡ªp"  ¬O¦ó·N«ä .
¼Ó¥D¥i¯à­n¥[¤W  Sheets("data").Select  µe­±Âà¨ì "data"¤u§@ªí

TOP

¦^´_ 4# GBKEE
¨S¿ù¡I
³q±`ø»s²Î­p¹Ïªí§¹¦¨«á¡A§Ú³£·|¶¶¤â Focus ¨ì
¨ä¥¦ªÅ¥ÕÄæ¦ì¤W¡C

TOP

¦^´_ 4# GBKEE

¦^ÂÐ GBKEE ª©¥D
§Ú©Òªþªºªþ¥ó¡A¦bµ{¦¡°õ¦æ§¹«á´N¬OµLªk³z¹Lµ{¦¡½X ¨ú®ø¿ï¨úªº°Ê§@...
¥~Æ[¬Ý°_¨Ó¦n¹³¨S¦³¿ï¨ú¡A¦ý¨ä¹ê¬O¹Ïªí¥~³ò¦³³Q¿ï¨ú....
±z¥i¥H¦A´ú¸Õ¤@¦¸¬Ý¬Ý¡Aµ{¦¡°õ¦æ§¹«á¡Aª½±µ«ö Delete ¡A
¦pªG¨S³Q¿ï¨ú¡A«h¤£·|³Q Delete¡A¦ý¹ê»Ú¤W«o·|³Q§R°£....
­ì¥»§Ú¥Î 2003ª©®É¡A¨S¦³³o­Ó°ÝÃD¡A¦ý 2010ª© ´N¥X²{³o¼Ëªº°ÝÃD...
³£¥²¶·¥Î·Æ¹«¦A¨ì ¹Ïªí°Ï¥~ ÂI¤@¤U¡A©Î¬O«ö Esc Áä¨ú®ø¡A¦ý³o­Ó°Ê§@ µLªk¿ý»s¥¨¶°¨Ó
©Ò¥H¤~·|´£¥X¨Ó½Ð±Ð¦U¦ì¥ý¶i....
§Æ±æ§Ú¦³»¡²M·¡§Úªº°ÝÃDÂI....¡A³Â·Ð«ü¾É¤@¤U¡AÁÂÁÂ

JS

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2012-9-22 23:28 ½s¿è

¦^´_ 6# jsleee
µ{§ÇÅX°Ê«ö¶s¤w¸g¦b¦¹¹Ïªí¤¤¡A¤£»ÝSelect
  1. Sub test()
  2.     Sheets("Chart1").ChartTitle.Characters.Text = "¼Æ¶q¤ÀªR"
  3.     Sheets("Chart1").Deselect
  4.     ActiveWindow.Zoom = True
  5. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 7# Hsieh

·PÁ Hsieh ¶W¯Åª©¥Dªº«üÂI
§Úªº°ÝÃD¤w¸Ñ¨M¡A·P¿E¤£ºÉ....

JS

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤H¤£©È¿ù¡A´N©È¤£§ï¹L¡A§ï¹L¨Ã¤£Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD