![]() |
#4
|
||||
|
||||
![]()
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
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
gogita_79 | Excel Programming | 2 | 09-15-2014 01:48 AM |
Trying to insert a blank which shows up with background highlighted | livemusic | Word | 3 | 10-29-2012 02:50 PM |
How to Insert a Clear, Blank page without Lines and Numbers in a Pleading Document | Dirigo | Word | 5 | 09-30-2011 08:08 AM |
![]() |
PRADEEPB270 | Excel | 1 | 09-07-2011 02:33 AM |
![]() |
tareq | Excel | 12 | 09-29-2010 02:12 PM |