Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
can we add a blank line after every...lines?
Martyn,
Here is some code Dim i As Long Dim cRows As Long cRows = Cells(Rows.Count, "A").End(xlUp).Row cRows = cRows - (cRows Mod 20) For i = cRows To 20 Step -20 Cells(i, "A").EntireRow.Insert Next i -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Martyn" wrote in message ... Hi, Wanna add a blank line to the worksheet after every 20 lines with a macro. Can you suggest ways? TIA |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
can we add a blank line after every...lines?
Change your clock first.
-- Don Guillett SalesAid Software "Martyn" wrote in message ... Hi, Wanna add a blank line to the worksheet after every 20 lines with a macro. Can you suggest ways? TIA |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
can we add a blank line after every...lines?
Hi,
Wanna add a blank line to the worksheet after every 20 lines with a macro. Can you suggest ways? TIA |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
can we add a blank line after every...lines?
Thanks a lot Bob,
it does the trick. "Bob Phillips" wrote in message ... Martyn, Here is some code Dim i As Long Dim cRows As Long cRows = Cells(Rows.Count, "A").End(xlUp).Row cRows = cRows - (cRows Mod 20) For i = cRows To 20 Step -20 Cells(i, "A").EntireRow.Insert Next i -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Martyn" wrote in message ... Hi, Wanna add a blank line to the worksheet after every 20 lines with a macro. Can you suggest ways? TIA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I add a line every 3 lines in a 5600 line spreadsheet? | Excel Discussion (Misc queries) | |||
macro to insert blank line when lines sum to zero | Excel Discussion (Misc queries) | |||
Macro not recognizing blank lines as blank | Excel Discussion (Misc queries) | |||
10 000 Line, every 2 Lines need a border and a open line inbet. e. | Excel Discussion (Misc queries) | |||
how to automatically insert blank lines in between non-blank lines | Excel Programming |