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

[µo°Ý] Vlookupªº table_Array ¦p¦ó§ï¬°ÅܼÆÀ³¥Î

[µo°Ý] Vlookupªº table_Array ¦p¦ó§ï¬°ÅܼÆÀ³¥Î

½Ð±ÐVBA¥ý¶i

§Ú·Q§Q¥Î°j°é·j´M¤£¦P¤u§@ªíªºTable(¦ý¬O¦P¤@¦ì¸m¤Î¤j¤p)
¦]¦¹·Q±N¤U¦C¦¡¤l¤¤ªºSheet2!R1C10:R1C11§ï¬°ÅܼƨϥνбÐÀ³¸Ó¦p¦ó­×§ï


ÁÂÁÂ

   ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Sheet2!R1C10:R1C11,2,FALSE)"

  1. Sub test()
  2. x = Sheet1.[a1].Value
  3. ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Sheet" & x & "!R1C10:R1C11,2,FALSE)"
  4. End Sub
½Æ»s¥N½X
¦^´_ 1# jk5451280

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