- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¤j®a¦n
·Q½Ð°Ý¤j®a¥H¤U¸ê®ÆÂà¸m
¸Ó¦p¦ó¥Îvba§¹¦¨
ì©l¸ê®Æ¦p¤U¡]sheet1)
²Ä¤@Äæ ²Ä¤GÄæ
A ...
ciboybj µoªí©ó 2015-1-29 13:12 - Sub NN()
- Dim iCol%
- Dim lRows&
- Dim sStr$
- Dim vD, vRow
-
- Set vD = CreateObject("Scripting.Dictionary")
- Set vRow = CreateObject("Scripting.Dictionary")
- lRows = 1
- iCol = 1
- Sheets("Sheet2").Cells.Clear
- With Sheets("Sheet1")
- While .Cells(lRows, 1) <> ""
- sStr = CStr(.Cells(lRows, 1))
- If vD.Exists(sStr) Then
- vRow(sStr) = vRow(sStr) + 1
- Else
- vD(sStr) = iCol
- iCol = iCol + 1
- vRow(sStr) = 1
- Sheets("Sheet2").Cells(vRow(sStr), vD(sStr)) = .Cells(lRows, 1)
- vRow(sStr) = vRow(sStr) + 1
- End If
- Sheets("Sheet2").Cells(vRow(sStr), vD(sStr)) = .Cells(lRows, 2)
- lRows = lRows + 1
- Wend
- End With
- End Sub
½Æ»s¥N½X |
|