分类: WINDOWS
2008-09-25 17:59:52
chinaunix网友2008-10-21 18:38:22
' 此角本只能在同一个excel文件中执行一次,多次执行会清除excel内容. Dim R As String Dim endr As String Dim Radd As String Dim times As String Dim R2 As string R = 17 '输入开始执行的行号 c = 65536 times = 1 For i = 1 To 65536 R2=R+2 Range("E" & R2).Select Application.CutCopyMode = False Selection.Cut Range("E" & R).Select ActiveSheet.Paste R = R + 3 i = i + 1 If Range("E" & R).Value = "" Then times = times + 1 If times > 4 Then end Next i