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

[µo°Ý] ½Ð°ÝÃö©ó¸ó¤u§@ªívlookupªºvba»yªk

¦^´_ 20# e19821223
2# ¦³»¡: ³oµ{§Ç¦WºÙ,¬OVBA¤u§@ªíª«¥ó¼Ò²Õªº¤º«Ø¨Æ¥ó¦WºÙ,¤£­n¶Ã¥Î
¨C¤@¤u§@ªí³£¥i¥H¥h½s³]³o¨Ç¤º«Ø¨Æ¥ó ,¬°¦ó¤£¦æ¤W¶ÇÀɮ׬ݬÝ
¦p¹Ï

   
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

©êºp §Ú¦A¥J²Ó¬Ý¤F¤@¤U ¬O§Úªº¤u§@ªí¦WºÙ¥´¿ù ¥Ø«eOK¤F ·PÁÂG¤j!

TOP

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim data As Range, Y As Variant
    Application.EnableEvents = False
    If Not Intersect(Target, [A1:A10]) Is Nothing Then
       ' Set data = ['sheet2'!$A$1:B$25]
        'Y = Application.VLookup(Target, data, 2, 0)
        Y = Application.VLookup(Target, ['sheet2'!$A$1:B$25], 2, 0)
        Target.Offset(, 1) = IIf(IsError(Y), "", Y)
     End If
    Application.EnableEvents = True
End Sub


¤j¤j·Q½Ð°Ý³o¤@¬q¬O§_¦³¿ìªk§â¥~®Ø¦rÅéÃC¦â¤]¤@¨Ö±a¹L¨Ó©O??? ·P®¦.......

TOP

        ÀR«ä¦Û¦b : ÁÀ¨¥¹³¤@¦·²±¶}ªºÂAªá¡A¥~ªí¬üÄR¡A¥Í©Rµu¼È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD