I want to be able to select the column that I want it to compare the value and if the value changes then insert a row. This code works but it doesn't allow me select the column I want to use and it doesn't stop at the last row that has data it continues to the end of he spreadsheet.
Sub Insert()
Dim LR Ad Long
Application.ScreenUpdating = False
LR = Range("B" & Rows.Count).End9xlUp).Row
Range("B" &LR).Select
Do Until ActiveCell.Row=2
If ActiveCel.Value<> Active.Offset(-1).Value Then
ActieCell.Resze(1).EntireRow.Insert
End If
ActiveCell.Ofse(-1).Select
Loop
Application.ScreenUpdateing - False
End Sub
Sub Insert()
Dim LR Ad Long
Application.ScreenUpdating = False
LR = Range("B" & Rows.Count).End9xlUp).Row
Range("B" &LR).Select
Do Until ActiveCell.Row=2
If ActiveCel.Value<> Active.Offset(-1).Value Then
ActieCell.Resze(1).EntireRow.Insert
End If
ActiveCell.Ofse(-1).Select
Loop
Application.ScreenUpdateing - False
End Sub