Worksheet_Change(ByVal Target As Range) °ÝÃD
- ©«¤l
- 176
- ¥DÃD
- 98
- ºëµØ
- 0
- ¿n¤À
- 279
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-2-17
- ³Ì«áµn¿ý
- 2020-4-8
|
Worksheet_Change(ByVal Target As Range) °ÝÃD
·í¨Ï¥Î Worksheet_Change(ByVal Target As Range)
¦p¦ó³]©w Target = Range("A1:B10") ½d³ò¥H¤º ¥ô¦ó¤@ÓÀx¦s®æ
¥t¥~·íWorksheet_Changeµ{¦¡¶i¦æ¤¤,
·|¦b¦P¤@¤u§@ªí¤¤¦³¸ê®Æ§Û¼g°Ê§@ Range("A1:B10") ½d³ò¥H¥~,
¥i§_¼È°±¤£·|¦A¤ÞµoWorksheet_Change¨Æ¥ó,
½Ð«ü±Ð |
|
|
|
|
|
|
- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28
|
¦^´_ 1# enoch
1. "·í¨Ï¥Î Worksheet_Change(ByVal Target As Range)
¦p¦ó³]©w Target = Range("A1:B10") ½d³ò¥H¤º ¥ô¦ó¤@ÓÀx¦s®æ"
³o¼Ë¥i¥H¬Ý¨C¤@Ó®æ¤lªº¸ê®Æ:
for each c in target
msgbox(c.value)
next
³o¼Ë¥i¥H¬ÝTARGET¤¤²Ä2Äæ²Ä1¦æ®æ¤lªº¸ê®Æ
msgbox(target.cells(1,2).value)
2. "¥t¥~·íWorksheet_Changeµ{¦¡¶i¦æ¤¤,
·|¦b¦P¤@¤u§@ªí¤¤¦³¸ê®Æ§Û¼g°Ê§@ Range("A1:B10") ½d³ò¥H¥~,
¥i§_¼È°±¤£·|¦A¤ÞµoWorksheet_Change¨Æ¥ó, "
¦b§Û¼g«e«á¦h¥[¥y¥N½X
Application.EnableEvents = False
....§Û¼g°Ê§@...
Application.EnableEvents = True |
|
|
|
|
|
|