C
Connie Martin
How to I adapt this formula to insert 8 blanks rows? Right now it inserts
only one, and I can't read this stuff! Thank you. Connie
Sub InsertRow_At_Change()
Dim i As Long
Dim colno As String
'Dim colno as Long
colno = InputBox("Enter a Column Letter")
'colno = InputBox)"Enter a Column Number")
With Application
.Calculation = xlManual
.ScreenUpdating = False
End With
For i = Cells(Rows.Count, colno).End(xlUp).Row To 2 Step -1
If Cells(i - 1, colno) <> Cells(i, colno) Then _
Cells(i, colno).Resize(1, 1).EntireRow.Insert
Next i
With Application
.Calculation = xlAutomatic
.ScreenUpdating = True
End With
End Sub
only one, and I can't read this stuff! Thank you. Connie
Sub InsertRow_At_Change()
Dim i As Long
Dim colno As String
'Dim colno as Long
colno = InputBox("Enter a Column Letter")
'colno = InputBox)"Enter a Column Number")
With Application
.Calculation = xlManual
.ScreenUpdating = False
End With
For i = Cells(Rows.Count, colno).End(xlUp).Row To 2 Step -1
If Cells(i - 1, colno) <> Cells(i, colno) Then _
Cells(i, colno).Resize(1, 1).EntireRow.Insert
Next i
With Application
.Calculation = xlAutomatic
.ScreenUpdating = True
End With
End Sub