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

½Ð¨ó§U¥[¤J·s¤¸¯À

¦^´_ 1# 317
  1. Sub CopyData()
  2. Dim ¦C As Integer
  3. Dim ³fª«½s¸¹ As String
  4. Dim ³fª«¦WºÙ As String
  5. Dim Ãþ«¬ As String
  6. Dim ¼Æ¶q As Integer
  7. Set d = CreateObject("Scripting.Dictionary")
  8. ¦C = ActiveCell.Row
  9. ¿ï¾Ü¥Î³~ = Cells(¦C, 2)
  10. ³fª«½s¸¹ = Cells(¦C, 3)
  11. ³fª«¦WºÙ = Cells(¦C, 4)
  12. Ãþ«¬ = Cells(¦C, 5)
  13. ¼Æ¶q = Cells(¦C, 8)

  14. With Workbooks("b.xls").Sheets("sheet1")
  15. For Each a In .[AB3:AB6]
  16. d(a.Value) = a.Interior.ColorIndex
  17. Next
  18. .[A65536].End(xlUp).Offset(1, 0).Resize(, 5).Interior.ColorIndex = d(¿ï¾Ü¥Î³~)
  19. .[A65536].End(xlUp).Offset(1, 0).Resize(, 5).Value = Array(¿ï¾Ü¥Î³~, ³fª«½s¸¹, ³fª«¦WºÙ, Ãþ«¬, ¼Æ¶q)
  20. End With
  21. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 3# 317

¥Î±Æ§Ç¥i¥H¶Ü?
  1. Sub CopyData()
  2. Dim ¦C As Integer
  3. Dim ³fª«½s¸¹ As String
  4. Dim ³fª«¦WºÙ As String
  5. Dim Ãþ«¬ As String
  6. Dim ¼Æ¶q As Integer
  7. Set d = CreateObject("Scripting.Dictionary")
  8. ¦C = ActiveCell.Row
  9. ¿ï¾Ü¥Î³~ = Cells(¦C, 2)
  10. ³fª«½s¸¹ = Cells(¦C, 3)
  11. ³fª«¦WºÙ = Cells(¦C, 4)
  12. Ãþ«¬ = Cells(¦C, 5)
  13. ¼Æ¶q = Cells(¦C, 8)
  14. Windows("b.xls").Activate
  15. With Workbooks("b.xls").Sheets("sheet1")
  16. .Select
  17. For Each a In .[AB3:AB6]
  18. d(a.Value) = a.Interior.ColorIndex
  19. Next
  20. Set a = .[A65536].End(xlUp).Offset(1, 0).Resize(, 5)
  21. a.Interior.ColorIndex = d(¿ï¾Ü¥Î³~)
  22. a.Value = Array(¿ï¾Ü¥Î³~, ³fª«½s¸¹, ³fª«¦WºÙ, Ãþ«¬, ¼Æ¶q)
  23. a.Select
  24. .Range(.[A2:E2], .[A2:E2].End(xlDown)).Sort key1:=.[A2], Header:=xlYes
  25. End With
  26. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¦³´¼¼z¤~¯à¤À¿ëµ½´c¨¸¥¿¡F¦³Á¾µê¤~¯à«Ø¥ß¬üº¡¤H¥Í¡C
ªð¦^¦Cªí ¤W¤@¥DÃD