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

VLOOKUPªº°ÝÃD

Dim x As Long
Dim y As Long
Dim z As Long

TOP

¤p¾Ç¥Í¨Sªk¤U¸üªþ¥ó,¤£¹L¬Ý¬Ý¬O§_³o¸Ì¥X°ÝÃD¥ý

y = Worksheets("Sheet1").Range("A"& z).Value
My Blog
http://blog.xuite.net/a8350070

TOP

ºÃ~§Úªþ¥ó¦³¤W¶Ç¦¨¥\°Ú¡I¦b§Úµo¨¥ªº³Ì¤U¤è¡A±z³oÃä¬Ý¤£¨ì¶Ü?
¤£¹L§Ú­è­è¦³­×§ï¤F¤@¤U¡A±N±z»¡ªº°Ñ¼Æ©ñ¶i¥h¡A¦ýÁÙ¬O¨S¿ìªk£z
¦bB2ªº³o®æÁÙ¬OÅã¬O#N/A¡A§Ú¦³¥Î¨ç¼Æ¥h¸Õ¸Õ¬Ý¡A­Y¥X²{#N/A¤£¬O¨S§ì¨ì­È¡A
¦Ó¬O³Ì¶}©lªº¡yy¡z³o­Ó­È¨S¦³§ì¨ìªº·N«ä¡A¦ý¬OÀ³¸Ó¬O¦³§ì¨ì°Ú¡I³o­Ó°ÝÃD§Ú¤@ª½«Ü¯Ç´e~"~

P.S. ¤p§Ì³Ìªñ¤~²Ä¤@¦¸µo©«µo°Ý¡A¨S¸gÅç­Y³y¦¨±zªº¤£«K¯uªº«Ü©êºp¡C

TOP

¨S¤Uªþ¥ó¡A¤£¹L¬Ý§Aªº¥N½X¡Avlookup¤Ö¤F¤@­Ó°Ñ¼Æ
Application.VLookup(y, Sheet2.[A1:B100], 2,0)

TOP

        ÀR«ä¦Û¦b : ¨C¤ÑµL©Ò¨Æ¨Æ¡A¬O¤H¥Íªº®ø¶OªÌ¡A¿n·¥¡B¦³¥Î¤~¬O¤H¥Íªº³Ð³yªÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD