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

½Ð±Ð¤@­Ó°ÝÃD:VBA¼g¦b¤u§@ªí1©MModule1¨âªÌ¦³¬Æ»ò®t²§?

½Ð±Ð¤@­Ó°ÝÃD:VBA¼g¦b¤u§@ªí1©MModule1¨âªÌ¦³¬Æ»ò®t²§?

½Ð±Ð¤@­Ó°ÝÃD:VBA¼g¦b¤u§@ªí1©MModule1¨âªÌ¦³¬Æ»ò®t²§?

§ÚÁÙ¦b¸ÕµÛ¾Ç²ß¤@¨Ç«D±`°ò¥»ªºVBA
§Ú·Q¤F¸Ñ¤@¤U¡AVBA¼g¦b¤u§@ªí1©MModule1¨âªÌ¦³¬Æ»ò®t²§?

¬O¤£¬OVBA¼g¦b¤u§@ªí1®É¡AVBA¶È¯à¦b¸Ó¤u§@ªí1°õ¦æ
¬O¤£¬OVBA¼g¦bModule1®É¡AVBA¥i¥H¦b¥ô¤@­Ó¤u§@ªí°õ¦æ

¦A³Â·Ð¦U¦ì¥ý¶iÀ°§Ú¸Ñ´b!

Just do it.

¦^´_ 1# jsc0518


    ¤@¯ë¼Ò²Õ(Module1)»P¤u§@ªí¼Ò²Õ(¤u§@ªí1)©Î¬O¬¡­¶Ã¯¼Ò²Õ(thisworkbook)
°ò¥»¤W¨ÃµL¨Ï¥Î¤Wªº­­¨î¡A¤]´N¬O»¡µ{§Çªº©I¥s³£¬O¥i¥Îªº¡C
¥u¬Oµ{§Ç¨Ì·Ó¼Ò²Õ¤ÀÃþ¦s©ñ¡A¦³§Q©ó¶°¦X¦¡ªº¹B¥Î
¨ä¶¡®t²§¸û¤jªº³¡¤À¬O
1.­Yµ{§Ç­n¨Ñµ¹¾ã­Óapplication¨Ï¥Î¡A§Y¤½¦@µ{§Ç³¡¤ÀÀ³¸Ó¼¶¼g¦b¤@¯ë¼Ò²Õ¤º
2.ª«¥ó«ü©wªº®t²§¡A·í¤@¯ë¼Ò²Õ¤º­n¨ú¥Îª«¥ó®É¡A¥²¶·«ü©ú¸Óª«¥ó©Ò¦b¤§¤u§@ªí¦WºÙ
Á|¨Ò»¡©ú:­n¨ú¥Î¤u§@ªí1ªºA1Àx¦s®æ®É
¦b¤u§@ªí1¼Ò²Õ¤º¥u»Ý¥HRange("A1")ªí¥Ü¡A§Y¥i
¦b¤@¯ë¼Ò²Õ¤º«hÀ³¸Ó¥HSheets("¤u§@ªí1").Range("A1")ªí¥Ü(­Y¸óÀɮק󥲶·«ü©ú¬¡­¶Ã¯¦WºÙ)
3.³q±`¤@¯ë¼Ò²Õ¤º¥¼«ü©w¤u§@ªí¦WºÙ¡A«h¨ú¥Î·í«e§@¥Î¤§¤u§@ªí¡C(§Y¬°ActiveSheet)
4.¤½¥Îµ{§Ç¼¶¼g©ó¤u§@ªí¼Ò²Õ¡A·|²£¥Í©I¥s½Õ¥Îªº§xÃø¡C(¤×¨ä¬O¼¶¼g­n¹B¥Î¨ì¤u§@ªíªº¤½¦¡¨ç¼Æµ{§Ç¡A¥²¶·¼g¦b¤@¯ë¼Ò²Õ¤º)
¥H¤W¤j·§¬O³Ì°ò¥»ªº¼Ò²Õ·§©À¡A¨ä¥L®t²§§A¥i¥Ñ¼¶¼g¸gÅ礤ºCºC²z¸Ñ
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 1# jsc0518

¥t¥~¦A¸É­z­Ó¤H²L¨£¡C

³q±`¤u§@ªí¼Ò²Õ¬O¥Î¦b¨Æ¥óµ{§Ç¤W¸û¦h¡A¦C¦p¡G
1.Worksheet_SelectionChange ¨Æ¥óµ{§Ç
2.Worksheet_Change ¨Æ¥óµ{§Ç
3.Worksheet_Activate ¨Æ¥óµ{§Ç
4.Worksheet_BeforeDoubleClick ¨Æ¥óµ{§Ç
5.Worksheet_BeforeRightClick ¨Æ¥óµ{§Ç
....µ¥

­Y¦³»Ý­nªº¸Ü¡A¤]¥i¦b¨Æ¥óµ{§Ç¤º©I¥s¤@¯ë¼Ò²Õ¤ºªº°Æµ{¦¡¨Ó°µ¹B¥Î¡C

TOP

¦^´_ 2# Hsieh

·PÁ±zªº¸Ô²Ó±Ð¾É¡A§Ú·|¦n¦n¦A¤é«á¬Ý¬Ý¨âªÌªº®t²§¡A­Y¦³°ÝÃD¦A»P±z½Ð±Ð!
Just do it.

TOP

¦^´_ 3# Kubi


ÁÂÁ±z©Ò´£¨Ñªº¸ê°T¡A§Ú·|¦n¦n¾Ç²ß!
Just do it.

TOP

¤@个¬O¼Ò块¡A¤@个¬O类¼Ò块¡A¼Ò块¦@¥Î内¦s¡A类¼Ò块¨ã¦³¨p¦³内¦s¡C
¥@¬É¨º»ò¤j¡A¥i§Ú·Q¥h­þ¡H

TOP

¦^´_ 6# Joforn


¤F¸Ñ¡AÁÂÁ«ü¾É!
Just do it.

TOP

        ÀR«ä¦Û¦b : ¶¢¤HµL¼Ö½ì¡A¦£¤HµL¬O«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD