Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Anita Thought you might like to know that I played around with the changes you suggested (see below) and it now works perfectly - thanks heaps for your input Karen Sub InsertRows() With Range("A10:A2499") On Error Resume Next Set C = .Find(What:="*", LookIn:=xlValues) If Not C Is Nothing Then firstaddress = C.Offset(1, 0).Address Do C.Offset(0, 0).EntireRow.Insert Set C = .FindNext(C) Loop While Not C Is Nothing And C.Address < firstaddress End If End With End Sub -- ksp ------------------------------------------------------------------------ ksp's Profile: http://www.excelforum.com/member.php...fo&userid=6267 View this thread: http://www.excelforum.com/showthread...hreadid=502787 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to insert a row after every 4th row | Excel Discussion (Misc queries) | |||
Macro to Insert Current Date into cell - Macro to "Save As" | Excel Worksheet Functions | |||
make a macro to insert a macro | Excel Discussion (Misc queries) | |||
Insert Row Macro Help | Excel Programming | |||
Insert A Row Macro | New Users to Excel |