- ©«¤l
- 6
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 9
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- office2000
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2021-1-11
- ³Ì«áµn¿ý
- 2021-3-22
|
¦U¦ì«e½ú
¤p§Ì¦Û¤vºN¯Á¥X¥Ø«e¥i¹B§@ªºµ{¦¡½X¦p¤U- Dim Arr_ssd, Arr_temp, ReArr_1, ReArr_2, Arr_out As Variant
- Dim a, b, c, i, j, k, rr, cc, x, y As Variant
-
- Application.DisplayAlerts = False
-
- Windows("array-1.xls").Activate
- i = Workbooks("array-1").Sheets("²Îpªí").UsedRange.Rows.Count
- j = Round((i / 25) + 0.5)
- k = 0 'k¬°§PÂ_°õ¦æ¦¸¼Æ
-
- Worksheets("²Îpªí").Activate
- Arr_ssd = Sheets("²Îpªí").Range([A2], Cells(i, 1).Offset(, 7)).Value
- Arr_out = Sheets("¶×¥Xªí").Range("A2:I26")
- Dim dd As Range
- Set dd = Sheets("¶×¥Xªí").Range("A2")
- ReDim Arr_temp(1 To 25, 1 To 9)
-
- ReArr_1 = WorksheetFunction.Transpose(Arr_ssd)
- ReDim Preserve ReArr_1(1 To 9, 1 To 1 + (25 * j))
- ReArr_2 = WorksheetFunction.Transpose(ReArr_1)
-
- x = 1
- y = 1
- rr = 0
-
- For k = 1 To j
- For y = 1 + (rr) To 25 + (rr)
- For x = 1 To 9
- Arr_temp(y - (rr), x) = ReArr_2(y, x)
- Debug.Print Arr_temp(y - (rr), x)
- Next x
- Next y
- rr = rr + 25
- dd.Resize(UBound(Arr_temp, 1), UBound(Arr_temp, 2)).Value = Arr_temp
-
- '¿é¥Xªí³æ
- Next k
½Æ»s¥N½X ¤£ª¾¹D¦³¨S¦³§ó²³æªº¤è¦¡¡H·QºÉ¥i¯à´î¤Ö¨Ï¥Î°j°é |
|