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

[µo°Ý] ¤U©Ô¦¡¿ï³æ³sµ²ªºÀx¦s®æµLªk±Ò°ÊWorksheet_change

[µ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

¥»©«³Ì«á¥Ñ Joker33006 ©ó 2011-2-26 02:32 ½s¿è

­è­è¦Û¤v¸Õ¤F¤@°}¤l¡A°ÝÃD¸Ñ¨M¤F¡C
§Ú¥[¤F¤@­ÓSub´N¯à¥¿±`¹B§@¡C

Private Sub ComboBox1_Change()
Shee4.[G6].Value = Sheet4.[g6].Value
End Sub

¤£¹L³o¼Ë´N¤Ó²ÖÂؤF¡A¦Ó¥B¤]¤£ª¾¹D¬°¤°»ò·|µo¥Í¤§«eªº°ÝÃD¡A
ÁÙ¬O§Æ±æ¦³¤j¤j¯à¸Ñµª§ÚªººÃ´b¡C

TOP

¦^´_ 2# Joker33006

§ï¦¨³o¼Ë¥i¥H¶Ü?
   
  1. Private Sub ComboBox1_Change()
  2.   Dim irow As Integer
  3. irow = Range(ComboBox1.LinkedCell).Row
  4. Sheet4.Cells(irow, 9).Value = Application.WorksheetFunction.VLookup(ComboBox1, Sheet2.Range("b:K"), 3, False)
  5. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ½_ÁJµ²±o¶V¹¡º¡¡A¶V·|©¹¤U««¡A¤@­Ó¤H¶V¦³¦¨´N¡A´N­n¶V¦³Á¾¨Rªº¯ÝÃÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD