Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How inserer a certain number of blank rows

PST

Sub InsertRows()
Application.ScreenUpdating = False
Dim numRows As Integer
Dim r As Long
r = Cells(Rows.Count, "A").End(xlUp).Row
numRows = 10
For r = r To 1 Step -1
ActiveSheet.Rows(r + 1).Resize(numRows).Insert
Next r
Application.ScreenUpdating = True
End Sub


Gord Dibben MS Excel MVP

On Tue, 08 May 2007 07:21:50 +0200, PST wrote:

hello

NBligne=10

How inserer a certain number of blank rows, under all the nonempty lines
of column A

Row 1
add 10 lines
Row 2
add 10 lines

etc...

thank you


  #2   Report Post  
Posted to microsoft.public.excel.misc
PST PST is offline
external usenet poster
 
Posts: 29
Default How inserer a certain number of blank rows

hello

NBligne=10

How inserer a certain number of blank rows, under all the nonempty lines
of column A

Row 1
add 10 lines
Row 2
add 10 lines

etc...

thank you
  #3   Report Post  
Posted to microsoft.public.excel.misc
PST PST is offline
external usenet poster
 
Posts: 29
Default How inserer a certain number of blank rows

thank you very much

it is right what I wanted

Gord Dibben a écrit :
PST

Sub InsertRows()
Application.ScreenUpdating = False
Dim numRows As Integer
Dim r As Long
r = Cells(Rows.Count, "A").End(xlUp).Row
numRows = 10
For r = r To 1 Step -1
ActiveSheet.Rows(r + 1).Resize(numRows).Insert
Next r
Application.ScreenUpdating = True
End Sub


Gord Dibben MS Excel MVP

On Tue, 08 May 2007 07:21:50 +0200, PST wrote:

hello

NBligne=10

How inserer a certain number of blank rows, under all the nonempty lines
of column A

Row 1
add 10 lines
Row 2
add 10 lines

etc...

thank you



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy rows of data (eliminating blank rows) from fixed layout Sweepea Excel Discussion (Misc queries) 1 March 13th 07 11:05 PM
How do I insert blank rows between rows in completed worksheet? bblue1978 Excel Discussion (Misc queries) 1 October 26th 06 07:02 PM
Get number of rows that data uses, including blank rows Denham Coote Excel Discussion (Misc queries) 5 August 22nd 06 02:10 PM
Inserting Blank rows after every row upto 2500 rows Manju Excel Worksheet Functions 8 August 22nd 06 12:54 PM
Get number of rows that data takes up, including blank rows Denham Coote Excel Worksheet Functions 2 August 21st 06 09:18 AM


All times are GMT +1. The time now is 04:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"