- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¹ï¤£°_, ¦]¦Ò¼{¨ì§A¥i¯à»Ýn ®É¶¡,
´ú¸Õ®É¦³µyµyקïªí®æ, §Ñ¤F§ï¦^¨Ó,
ªí®æ¤w§ï¦^¨Ó¤F, ¤]¤w«·s×¥¿VBA,
¥u¼W¥[®É¶¡¦Ó¤v, ¨ä¥L¤£ÅÜ, ¸Õ¸Õ¬Ý!!- Private Sub CommandButton1_Click()
- Dim sh1 As Worksheet
- Dim c0 As Long, r0 As Long, LstR0 As Long, cnt As Integer
- Dim c1 As Long, r1 As Long, LstR1 As Long, msg As Integer
- Set sh1 = Sheets("¤u§@ªí1")
- msg = MsgBox("n²M°£ [¤u§@ªí1] ¤¤ì¦³¸ê®Æ¶Ü?", vbYesNo)
- If msg = vbYes Then
- sh1.Cells.Clear
- [A1].Copy sh1.[A1]
- End If
- LstR0 = Cells(Rows.Count, "B").End(xlUp).Row
- LstR1 = sh1.Cells(Rows.Count, "B").End(xlUp).Row
- For r0 = Int(LstR1 / 5) * 6 + 2 To LstR0 Step 6
- r1 = Int(r0 / 6) * 5 + 2
- Cells(r0, 1).Resize(4, 2).Copy sh1.Cells(r1, 1)
- cnt = 2
- For c0 = 3 To 26
- If Cells(r0, c0) >= 36 Then
- cnt = cnt + 1
- Cells(1, c0).Copy sh1.Cells(r1 - 1, cnt)
- Cells(r0, c0).Resize(4, 1).Copy sh1.Cells(r1, cnt)
- End If
- Next
- Next
- End Sub
½Æ»s¥N½X °õ¦æµ²ªG¦p¤U:
|
|