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

[µo°Ý] ®Ú¾Ú¥Ø«e¦r¦ê¨ì¨ä¥L¤u§@­¶·j´M¦r¦ê¨Ã¶ñ¦^­È

¦^´_ 1# a703130
  1. Sub ex()
  2. Set d = CreateObject("Scripting.Dictionary")
  3. For Each sh In Sheets
  4. d(sh.Name) = d.Count
  5. Next
  6. With Sheet1
  7. For Each a In .Range("F:F").SpecialCells(xlCellTypeConstants, xlNumbers)
  8.    If d.exists(a.Offset(, -4).Text) Then
  9.     With Sheets(a.Offset(, -4).Text)
  10.     Set c = .Columns("A").Find(Split(a.Offset(, -5), "_")(1), lookat:=xlWhole)
  11.     If Not c Is Nothing Then
  12.     i = 1
  13.     k = Application.Count(c.Offset(1, 2).Resize(2, 8))
  14.     For x = 2 To 1 Step -1
  15.        For y = 8 To 1 Step -1
  16.           b = c.Offset(1, 2).Resize(2, 8).Cells(x, y)
  17.           If IsNumeric(b) Then
  18.              mystr = IIf(mystr = "", Application.Small(c.Offset(1, 2).Resize(2, 1).EntireRow, i), mystr & "," & Application.Small(c.Offset(1, 2).Resize(2, 1).EntireRow, i))
  19.              i = i + 1
  20.            Else
  21.              mystr = IIf(mystr = "", "", mystr & ",")
  22.            End If
  23.         Next
  24.     Next
  25.     a.Offset(, 1) = mystr
  26.     mystr = ""
  27.     End If
  28.     End With
  29.     Else
  30.     a.Offset(, 1) = ""
  31.     End If
  32. Next
  33. End With
  34. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : °µ¸Ó°µªº¨Æ¬O´¼¼z¡A°µ¤£¸Ó°µªº¨Æ¬O·Mè¡C
ªð¦^¦Cªí ¤W¤@¥DÃD