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

[µo°Ý] ·j´M¡B¤ñ¹ï¡A¦A½Æ»s¹L¨Óªº¥\¯à

¦^´_ 3# Kubi


    «z~~ §A³o­ÓÁÙ¥i¥H¦Û°Ê¶}¥t¥~ªºÀɮסAµM«áÁÙ¥i¥H¦Û°ÊÃöÀÉ
   ¤Ó´Î¤F°Õ¡A³o©Û§Ú¤@©w­n¾Ç°_¨Ó
   ·PÁ±zªº¤À¨É¡A¥\¯à§¹¥þ²Å¦X§Úªº»Ý¨D
    ¦Ó¥B¤£»Ý­n¼g«Ü¦h¦æ´N·d©w¤F
    §Ú¥ú¬O°}¦C¨ºÃä´N¤£¦æ¤F....
    ¦A¦¸·PÁÂ
«¢Åo~¤j®a¦n§r

TOP

¦^´_ 2# jeffrey628litw


    ·PÁ±zªº¦^ÂСA¦]¬°§Úªº¸ê®Æ¬O¦b¤£¦PªºÀɮפ¤¡A©Ò¥Hµo°Ý¤~·|¨Ï¥Î¤£¦PÀÉ®×
   §Ú·|¦A¦Û¤v¸Õ¬Ý¬Ýªº¡AÁÂÁ±z
«¢Åo~¤j®a¦n§r

TOP

¦^´_ 1# iceandy6150
½Ð°Ñ¦Ò
  1. Private Sub CommandButton1_Click()
  2.     Dim arr
  3.     Dim brr()
  4.     Dim d As Object
  5.     Set d = CreateObject("Scripting.Dictionary")
  6.     Application.ScreenUpdating = False
  7.     ar = Array("¸ê®Æ.xlsx", "¤Ø¤o.xlsx")
  8.     For Each book In ar
  9.         Workbooks.Open ThisWorkbook.Path & "\" & book
  10.         arr = ActiveSheet.[A1].CurrentRegion
  11.         ActiveWorkbook.Close 0
  12.         For i = 2 To UBound(arr)
  13.             For j = 2 To UBound(arr, 2)
  14.                 d(arr(i, 1) & arr(1, j)) = arr(i, j)
  15.             Next j
  16.         Next i
  17.     Next book
  18.     arr = ActiveSheet.[A1].CurrentRegion
  19.     ReDim brr(1 To UBound(arr) - 1, 1 To UBound(arr, 2) - 1)
  20.     For i = 2 To UBound(arr)
  21.         For j = 2 To UBound(arr, 2)
  22.             brr(i - 1, j - 1) = d(arr(i, 1) & arr(1, j))
  23.         Next j
  24.     Next i
  25.     [B2].Resize(UBound(brr), UBound(brr, 2)) = brr
  26.     Application.ScreenUpdating = True
  27.     Erase brr
  28.     Set d = Nothing
  29.     arr = ""
  30. End Sub
½Æ»s¥N½X
ª`·N¡G¥»µ{¦¡·|¦Û°Ê¶}±Ò¨â­Ó¸ê®ÆÀɨӤñ¹ï¡A¦]¦¹°õ¦æ«e¤£»Ý¥ý¶}±Ò¸ê®ÆÀɮסC

TOP

¦^´_ 1# iceandy6150


    ©ñ¦P¤@­ÓÀɮפ¤¥i¥H¶Ü?

³o2­ÓÀɮקA°Ñ¦Ò¤@¤U¡A¸Ì­±³]±ø¥ó¦ì¸m¤£¦P¡A§A¥i¥H¦Û¤v°Ñ¦ÒVBA¬ã¨s¦p¦ó­×§ï©ñ±ø¥óªº¦ì¸m¡C


VBA - ³]¦h±ø¥ó±q¸ê®Æ®w¤¤¼´¥Xµ²ªG(±`¥Î).rar (21.76 KB)

TOP

        ÀR«ä¦Û¦b : ­n¤ñ½Ö§ó¨ü½Ö¡D¤£­n¤ñ½Ö§ó©È½Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD