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

¥X²{°õ¦æ¶¥¬q¿ù»~1004À³¥Îµ{¦¡©Îª«¥ó©w¸q¤W¿ù»~

¥X²{°õ¦æ¶¥¬q¿ù»~1004À³¥Îµ{¦¡©Îª«¥ó©w¸q¤W¿ù»~

Public Sub ¶×¥X¦¬½L»ù()
Application.ScreenUpdating = False
Sheets("²M³æ").Select
V = Range("A2").End(xlDown).Row
Dim a()
Dim b()
ReDim a(V - 1)
ReDim b(V - 1)
Sheets("¦¬½L»ùºô¸ô").Select

For i = 0 To V - 1
a(i) = Cells(i * 10 + 8, 2)
b(i) = Cells(i * 10 + 13, 2)

Next

ChDir "C:\Users\michael\Desktop\108\focvs.xlsm"(¥Ø«e§ï¬°ChDir "C:\Users\michael\Desktop\108")
Workbooks.Open Filename:="C:\Users\michael\Desktop\108\focvs.xlsm"

Sheets("²M³æ").Select
For i = 2 To Range("A1").End(xlDown).Row
Sheets("²M³æ").Select
k = Cells(i, 2)
If k = "" Then Exit For

Sheets(k).Select
h = Range("b3").End(xlDown).Row
Cells(h + 1, "b") = a(i- 2)
Cells(h + 1, "e") = b(i- 2)
Next
Windows("ºô¸ô¸ê®Æ§ì¨ú.xlsm").Activate
Sheets("ºô¸ô¦¬½L»ù").Select
Application.CutCopyMode = True
Workbooks("focus. xlsm ").Save
Workbooks("focus. xlsm ").Close
Application.ScreenUpdating = True
MsgBox "§ó·s§¹²¦!", vb0XOnly, "³qª¾"

End Sub

²{¥Ø«e¶]¨ì³o¸Ì
cells(h+1,"b")=a(i-2)
cells(h+1,"e")=b(i-2)¥X²{°õ¦æ¶¥¬q¿ù»~1004À³¥Îµ{¦¡©Îª«¥ó©w¸q¤W¿ù»~

ps:§Ú¶}¤@­ÓÀɮ׺ô¸ô¸ê®Æ§ì¨ú¤u§@ªí¦³²M³æ¤Î¦¬½L»ùºô¸ô¥t¤@­Ófocus¤u§@ªí¦³²M³æ¤Î¦U¤½¥qªº¦¬½L»ù¸ê®Æ
chdir "c:\users\michael\desktop\108"
workbooks.open filename:="c:\users\michael\desktop\108\focus.xlsm"
ºô¸ô¸ê®Æ§ì¨ú©MfocusÀɮ׳£¦s©ñ¦bc:\users\michael\desktop\108Àɮק¨¸Ì­±
michael

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD