- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 17
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-11-19
|
Macro- Sub test()
- Dim arr, n%, m%, a()
- er = [A65536].End(3).Row
- arr = [a1].Resize(er, 5).Value
- ReDim a(1 To er, 1 To 1)
- For i = 2 To er
- n = arr(i, 1): m = 1
- For j = 2 To 5
- If arr(i, j) > n Then n = arr(i, j): m = j
- Next
- a(i, 1) = arr(1, m)
- Next
- [i1].Resize(er) = a
- End Sub
½Æ»s¥N½X- Sub newdata()
- Dim ar
- er = [A65536].End(3).Row
- ReDim ar(1 To er, 1 To 5)
- [a2].Resize(er, 9).ClearContents
- For i = 1 To er
- For j = 1 To 5
- ar(i, j) = Int(Rnd * 1000) + 1
- Next
- Next
- [a2].Resize(er, 5) = ar
- End Sub
½Æ»s¥N½X |
|