View Single Post
 
Old 09-15-2014, 01:53 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,383
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Yes, it is different, but not by much. Compare this macro against the one I've posted in the other thread:
Code:
Sub InsertDateRows()
Dim lRow As Long, i As Long
With ThisWorkbook.Worksheets("Sheet1").UsedRange
  For i = .Cells.SpecialCells(xlCellTypeLastCell).Row To 1 Step -1
    If IsDate(.Range("B" & i).Text) Then
       While IsDate(.Range("B" & i + 2).Text) Or IsDate(.Range("B" & i + 1).Text)
          .Range("B" & i + 1).EntireRow.Insert
       Wend
    End If
  Next
End With
End Sub
You'll see that most of the code is the same.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote