ªð¦^¦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 : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD