½Ð°Ý¥H¤Uµ{¦¡½XÁÙ¯à¦p¦óÀu¤Æ¤w¤Î¦p¦óÄÀ©ñ°O¾ÐÅé©O
¤w¸g¨Ï¥Î°}¦C¤è¦¡§ì¨ú¼Æ¾Ú~¦ý³t«×ÁÙ¬O¦³ÂIºC ¬ù200ÓÀÉ®×
Sub §å¦¸§ì¼Æ¾Ú()
Application.Calculation = xlManual '¤â°Êpºâ,Ãö³¬
Application.ScreenUpdating = False ' ¿Ã¹õ¨ê·s,Ãö³¬
Dim filenames As Variant
''³]¸m¼Æ²Õµ¹Åܶq©M¯u¬°¦h¿ï
' set the array to a variable and the True is for multi-select
filenames = Application.GetOpenFilename(, , , , True)
counter = 1
' ¿ï¾ÜÁ`¦@n¶}±ÒªºÀÉ®×
While counter <= UBound(filenames)
'¥´¶}¿ï©wªº¤å¥ó,¥B¤£§ó·s³sµ²
Workbooks.Open filenames(counter), UpdateLinks:=0
'¥¨¶°
§ì¼Æ¾Ú
'Ãö³¬¿ï¾ÜªºÀÉ®×
'ActiveWorkbook.Close True
' ®ø®§®Ø Åã¥Ü¤å¥ó¦W
'MsgBox filenames(counter)
'¶}±Ò·sÀÉ®×
counter = counter + 1
Wend
' ¿Ã¹õ¨ê·s,¶}±Ò
Application.ScreenUpdating = True
Application.Calculation = xlAutomatic
End Sub
-----------------------------------------
Sub §ì¼Æ¾Ú()
Dim strArr() As Variant
Dim I As Long, J As Long
Dim K As Long
workname = ThisWorkbook.Name
¶g¼Æ = Sheets("¤u§@ªí1").Range("AA2")
½d³ò1 = Sheets("¤u§@ªí1").Range("AB2")
½d³ò2 = Sheets("¤u§@ªí1").Range("AB3")
Sheets(¶g¼Æ).Select
strArr() = Range("S" & ½d³ò1 & ":AV" & ½d³ò2)
For J = 1 To 30
For I = 1 To 10
K = K + 1
strArr(I, J) = strArr(I, J) '& "(Change Index=" & K & ")"
Next I
Next J
ActiveWorkbook.Close True
Windows(workname).Activate
Rng = Cells(1, 1).End(xlDown).Row + 1 '²Ä¤@®æ³Ì¥½¦C+1
Sheets("¤u§@ªí1").Range("A" & Rng).Resize(10, 30) = strArr()
End Sub |