Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ts ts is offline
external usenet poster
 
Posts: 7
Default add an extra row

I have an excel sheet that I want to add an empty row after each row. It
should be like one with data and one empty row. How to accomplish this?
--
TS
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default add an extra row

Hi,

Try the following:
'--------------------------------------------------------
Sub test()
InsertSpaceRow ActiveSheet, 3, 10
End Sub

'takes a sheet , a start row number and an end row number
Sub InsertSpaceRow(Wsh As Worksheet, rowStart As Long, rowEnd As Long)
Dim i As Long

Application.ScreenUpdating = False
For i = rowEnd To rowStart Step -1
Wsh.Range(i & ":" & i).EntireRow.Insert
Next
End Sub
'------------------------------------------------------------
--
Regards,
Sébastien


"TS" wrote:

I have an excel sheet that I want to add an empty row after each row. It
should be like one with data and one empty row. How to accomplish this?
--
TS

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
extra sheets dleo New Users to Excel 4 February 17th 09 12:17 AM
about extra row jinvictor Excel Discussion (Misc queries) 1 June 7th 06 02:24 PM
how do I get rid of extra rows sarahtar Excel Discussion (Misc queries) 1 November 13th 05 03:30 AM
Extra Columns Peco Worker Excel Discussion (Misc queries) 3 May 23rd 05 01:17 PM
vlookup extra tina Excel Discussion (Misc queries) 2 May 4th 05 05:12 PM


All times are GMT +1. The time now is 08:51 PM.

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

About Us

"It's about Microsoft Excel"