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

[µo°Ý] VLookup Vba¥Îªk

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-10-2 00:38 ½s¿è

¦^´_ 6# samwang
¤£¦n·N«ä ¡A´ú¸Õ¥¼¹Fµ²ªG~
´ú¸Õ¦n´X¦¸¡A³£¦b   .EntireColumn.AutoFit    '¦C172³B¤¤Â_~¦p¹Ï¤ù

¦pªG±N  .EntireColumn.AutoFit  §ï¬°µù¸Ñ«á~
¦AÂI°õ¦æ~¿Ã¹õ·|Åܶ«Ì~Àɮפ]Ãö¤£±¼~¥u¯à±j¨î­«·s¶}¾÷«á~¦A´ú¸Õ~´ú¸Õ¦n´X¦¸¡A³£¬O¦p¦¹

Àµ½Ð½ç¥¿
ÁÂÁ±z

TOP

¦^´_ 5# ziv976688

¥½¾Ç©|¦³3­Ó¨ç¼Æ¤½¦¡¡A·QÂà¤Æ¬°µ{¦¡»yªk~
>> ¦pªþ¥ó¡A26¦Cªº³Ì¤p=0 ªº­Ó¼Æµª®×»P§Aªº®ÄªGÀɦ³®t²§¡A½Ð¦A½T»{±zªº±ø¥ó»Ý¨D¬°¦ó? ÁÂÁÂ

7T_·j´M(²Î)¦rÀÉ(¥DÀÉ)_1001.zip (37.55 KB)

TOP

¦^´_ 3# samwang
¤£¦n·N«ä~¥½¾Ç©|¦³3­Ó¨ç¼Æ¤½¦¡¡A·QÂà¤Æ¬°µ{¦¡»yªk~
¸Ô¦p½d¨Òªþ¥ó :   TEST_0930_V1.rar (279.76 KB)

¥H¤W   Àµ½Ð½ç±Ð¡CÁÂÁ±z¡I   

TOP

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-9-30 14:15 ½s¿è

¦^´_ 2# samwang
´ú¸Õ¦¨¥\
¦h¾Ç¤@©Û(­ì¨ÓRow( )¡A¥²¶·¥H i = 4 To 10¨Óªí¹F)
ÁÂÁ±zªº«ü¾É~·P®¦

¦^´_ 3# samwang
¥u¬O·Q¾Ç²ß¨ç¼Æ¤½¦¡¦p¦óÂà¤Æ¬°µ{¦¡»yªk~
¥Ñ¨ç¼Æ¤½¦¡¤ñ¹ïµ{¦¡½X~¥½¾Ç¸û¯à®ø¤Æ»yªkªº·N¸q¡C
ÁÂÁ±z

TOP

¦^´_ 1# ziv976688


.[A4:A10].Formula = "=IF(A$1="""","""",VLOOKUP(A$1,DATA!$A:$H,ROW()-2,))": .[A4:A10] = .[A4:A10].Value    '¦C132
>> ½Ð°Ý­ì¨Ó¨º­Ó'¦C132¤£¬O¥i¥H¥Î¶Ü? ¬°¦ó­n§ï?

TOP

¦^´_ 1# ziv976688


If .[a1] <> "" Then For i = 4 To 10: .Cells(i, 1) = Application.VLookup(.Range("A1"), Sheets("DATA").Range("A:H"), i - 2, 0): Next

TOP

        ÀR«ä¦Û¦b : ¦a¤WºØ¤Fµæ¡A´N¤£©öªø¯ó¡F¤ß¤¤¦³µ½¡A´N¤£©ö¥Í´c¡C
ªð¦^¦Cªí ¤W¤@¥DÃD