- ©«¤l
- 75
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 109
- ÂI¦W
- 0
- §@·~¨t²Î
- windows XP
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- °ª¶¯
- µù¥U®É¶¡
- 2015-4-19
- ³Ì«áµn¿ý
- 2024-8-10
|
¦^´_ 1# show5217
¦p¦ó³]©w«ö¶s´¡¤J¦p¹Ï±Æ§Ç.zip (168.5 KB)
Sub test_20190914()
'½T»{ Åã¥Üµ²ªG ªº³Ì«á¤@Äæ¦ì¸m
ROW1 = Sheets("Åã¥Üµ²ªG").Cells(Rows.Count, "A").End(3).Row
'¦pªG³Ì«á¤@Äæ > 1ªí¥Ü¦³¸ê®Æ
If ROW1 > 1 Then
'±N¸ê®Æ²M°£
Sheets("Åã¥Üµ²ªG").Range("A2:A" & ROW1).Clear
End If
'Åã¥Üµ²ªG ¥Ñ²Ä2¦C¶}©l===================
k = 2
'§PÂ_AÄ檺³Ì«á¤@Ó¦ì¸m
ROW2 = Cells(Rows.Count, "A").End(3).Row
'¦Cªº°j°é==========
For i = 1 To ROW2
'Ä檺°j°é==========
For j = 1 To 2
'±NÄæ¦ìªºÈ µ¹ Åã¥Üµ²ªG ªºÄæ¦ì
Sheets("Åã¥Üµ²ªG").Cells(k, "A").Value = Cells(i, j).Value
'©¹¤U¥[¤@Äæ
k = k + 1
Next
Next
End Sub |
|