Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Give this a try...
Sub InsertLines() Dim wks As Worksheet Dim rng As Range Set wks = ActiveSheet With wks Set rng = .Cells(Rows.Count, "A").End(xlUp) Do While rng.Row 1 rng.EntireRow.Insert rng.Offset(-1, 0).Value = "'=========" Set rng = rng.Offset(-2, 0) Loop End With End Sub -- HTH... Jim Thomlinson "JR" wrote: I have an excel spreadsheet with 20k rows of data. Want to add a row in between each one and in column A of each newly created row put in "=========" without the quotes. Can someone suggest a macro to do this? Thanks. JR |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using TEXT and &TEXT - display numbers with commas, underline text | Excel Discussion (Misc queries) | |||
Sumif text is contained winthin a longer text string in a cell | Excel Worksheet Functions | |||
Text does not display in "Text boxs" and when wrapping text in a c | Excel Discussion (Misc queries) | |||
Excel VBA: Worksheet cell .Text property: 1024 bytes text len limit | Excel Programming | |||
extracting text from within a cell - 'text to rows@ equivalent of 'text to columns' | Excel Programming |