- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 13# BV7BW
1)¤u§@ªí1.·í«È¤á¥u¦³1¦ì®É.·|¤ñ¹ï¤£¨ì.¦]¦Ó·|·í¾÷
>> ¦p¤U¡A½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Dim Arr, i&, N%
Application.ScreenUpdating = False
[E65535:G3].ClearContents
With Sheets("¤u§@ªí1")
With .Range(.[A1], .[D65536].End(3))
Arr = .Value
For i = 3 To UBound(Arr)
N = N + 1
Arr(N, 1) = Arr(i, 1)
Arr(N, 2) = Arr(i, 2)
Arr(N, 3) = Mid(Arr(i, 3), 1, 2)
Next
If N > 0 Then
With .Range("E3").Resize(N, 3)
.Value = Arr
.Sort Key1:=.Item(3), Order1:=1, Header:=2
For i = 1 To N: .Cells(i, 3) = "A" & i: Next
End With
End If
End With
End With
Application.ScreenUpdating = True
End Sub
2)¤u§@ªí4.«¾ã«á.¥i¥Hn¦b«¾ã¦^.·Ó«È¤á½s¸¹«á2½X¤j¤p¶¶§Ç±Æ¦C....
¬O³o¼Ë¶Ü?
Range([¤u§@ªí4!A65535].End(3), [¤u§@ªí4!J2]).Sort Key1:=[¤u§@ªí4!B2], Header:=2 |
|