- ©«¤l
- 471
- ¥DÃD
- 121
- ºëµØ
- 0
- ¿n¤À
- 579
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- OFFICE2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-4-16
- ³Ì«áµn¿ý
- 2023-1-17
|
¥»©«³Ì«á¥Ñ starry1314 ©ó 2016-7-21 16:26 ½s¿è
¦^´_ 2# starry1314
¤wק令¥\,·Q½Ð°Ý¦p¦ó¨Ï¥Î 10 step
1.·Q½Ð°Ý¦p¦ó¨Ï¥Îsql¨Ó°µ³B²z,¦]¬°³o¼Ë´¡¤J«á·|¾ÉP¤½¦¡¦Û°Ê§ó·s
·Q§ï¥Î³B²z§¹¤§«á¶K¤W- Sub insertRow´ö()
- ' insertRow Macro
- ' §»¥Ñ mike ¿ý»s¡A®É¶¡: 2012-8-6
- ' §Ö±¶Áä: Ctrl+u
- Dim RowN As Integer
- Dim i As Integer, j As Integer
- j = 6 '
- X = Cells(ActiveSheet.Rows.Count, 6).End(xlUp).Row
- For i = 1 To X '§P©w«DªÅªº³Ì¤j¦æ¼ÆRowN
- If Cells(i, j).Value <> "" Then
- RowN = i
-
- End If
- Next i
- For i = RowN To 3 Step -1
- If Cells(i, j) <> "" And (Cells(i, j) <> Cells(i - 1, j)) And Cells(i - 1, j) <> "" Then
- 'Range.("A" & i &":J"&i).Select
- Range(Cells(i, 1), Cells(i, 10)).Select
- Selection.Insert Shift:=xlDown
- End If
- Next i
- End Sub
½Æ»s¥N½X |
|