| 发表于:2007-04-16 10:19:173楼 得分:0 |
每隔3行? 1 <--> 4 2 <--> 5 3 <--> 6 4 <--> 7 ... 这样换? sub dd() dim c1, c2, maxrow as long maxrow = 300 for x = 1 to maxrow - 3 c1 = sheet1.cells(x, 1) c2 = sheet1.cells(x, 2) sheet1.cells(x, 1) = sheet1.cells(x + 3, 1) sheet1.cells(x, 2) = sheet1.cells(x + 3, 2) sheet1.cells(x + 3, 1) = c1 sheet1.cells(x + 3, 2) = c2 next end sub | | |
|