- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 6# e19821223
VBA »¡©ú- EnableEvents ÄÝ©Ê
- ½Ð°Ñ¾\®M¥Î¦Ü½d¨Ò¯S©w¦pªG«ü©wª«¥ó¯àIJµo¨Æ¥ó¡A«h¥»Äݩʬ° True¡CŪ/¼g Boolean¡C
½Æ»s¥N½X
WORKSHEET_CHANGE ·í¨Ï¥ÎªÌ©Î¥~³¡³sµ²Åܧó¤u§@ªí¤¤ªºÀx¦s®æ®Éµo¥Í¦¹¨Æ¥ó
[b1] = Application.VLookup([a1], data, 2, 0) ,·|¤@ª½¤Þµo¦¹¨Æ¥ó.
- Option Explicit
- Private Sub WORKSHEET_CHANGE(ByVal Target As Range)
- Dim data As Range
- Application.EnableEvents = False
- Set data = ['sheet2'!$A$1:B$1000]
- [b1] = Application.VLookup([a1], data, 2, 0)
- Application.EnableEvents = True
- End Sub
½Æ»s¥N½X |
|