- ©«¤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-12-18
|
¦^´_ samwang
·P®¦ samwang ¼ö¤ßªº¦^ÂÐ
¸g¹L¥©¤â½s´¦Ó¦¨ªº VBA µ{¦¡½X +-*/¹Bºâ¦Û¦p
¤µ¦³¤@°ÝÃD ...
cypd µoªí©ó 2022-9-27 14:12
¦p¤WÀɮפµn§R°£ C Äæ1Äæ>>¬O³o¼Ë¶Ü?
Sub test()
Dim Arr, i&, s%, f%, Cnt
With Sheets("¤u§@ªí1")
Arr = .Range(.[i3], .[a65536].End(3))
For i = 1 To UBound(Arr)
If Arr(i, 8) = 0 Then s = s + 1: Arr(i, 9) = "¦¨¥\"
If Arr(i, 8) = 1 Then f = f + 1: Arr(i, 9) = "¥¢±Ñ"
Cnt = Cnt + Arr(i, 7)
Next
.[L3] = f: .[M3] = s: .[L4] = UBound(Arr): .[L5] = Cnt
[a3].Resize(UBound(Arr), 9) = Arr
.Copy After:=Sheets(Sheets.Count)
End With
With Range([a2], [i65536].End(3))
.Sort Key1:=.Item(9), Order2:=2, Header:=xlYes
End With
Columns("C:C").Delete Shift:=xlToLeft
End Sub |
|