- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- Vista
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2011-2-25
- ³Ì«áµn¿ý
- 2011-2-28
|
[µo°Ý] ¤U©Ô¦¡¿ï³æ³sµ²ªºÀx¦s®æµLªk±Ò°ÊWorksheet_change
¤p§Ì·Q°µ¤@Ó²³æªºq³æ¤¶±¡A¦p¤U¹Ï¡C
¦p¹Ï©Ò¥Ü¡A
§Ú¥ÎActiveX±±¨î¶µ°µ¤F¤@Ó¤U©Ô¦¡¿ï³æ¡A
¨Ã±N¤º«ØªºLinkedCell³]©w¦bG6¡C
©³¤U¬O§Úªºµ{¦¡½X¡A¦pªG§Úª½±µ¦bG6¿é¤J¤å¦r¡ASub´N·|¹B§@¡A
©Ò¥HSubÀ³¸Ó¨S°ÝÃD¡C
¦ý¦pªG¬O§Ú±q¤U©Ô¦¡¿ï³æ¤º°µ¿ï¾Ü¡AÁöµM¤å¦r¤@¼Ë·|Åã¥Ü¦bG6¡A
¦ý¬OSub´N¤£·|¹B§@¤F¡C
- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim irow As Integer
- If Target.Column = 7 And Target.Row >= 5 Then
- irow = Target.Row
- Sheet4.Cells(irow, 9).Value = Application.WorksheetFunction.VLookup(Target.Value, Sheet2.Range("b:K"), 3, False)
- End If
- End Sub
§ÚGoogle¹L¡A¤]¦b½×¾Â¤Wª¦¹L¤å¡A
¦ý¦]¬°¨S¦³ÀYºü¬OþÓÀô¸`¥X°ÝÃD¡A¥[¤W¤S¬O·s¤â¡A
©Ò¥H§ä¤£¨ìÃöÁä©Ò¦b¡C
¥i¥H³Â·Ð«e½úÌÀ°§Ú¬Ý¤@¤U°ÝÃD¬O¥X¦bþ¶Ü? ·P®¦¡C |
|