ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Blank Rows (https://www.excelbanter.com/excel-discussion-misc-queries/882-blank-rows.html)

Acesmith

Blank Rows
 
I am trying to enter a blank row inbetween every row that is in a worksheet
and I can't figure out a way to do it. I am going to be merging this
information and when I merge it without blank rows, it does not pull all of
the rows. Please help with any information you may have.

Ron de Bruin

Hi Acesmith

You can use a macro

Sub test()
Application.ScreenUpdating = False
Dim numRows As Integer
Dim R As Long
Dim rng As Range
numRows = 1
Set rng = ActiveSheet.UsedRange
For R = rng.Rows.Count To 1 Step -1
rng.Rows(R + 1).Resize(numRows).EntireRow.insert
Next R
Application.ScreenUpdating = True
End Sub





--
Regards Ron de Bruin
http://www.rondebruin.nl


"Acesmith" wrote in message ...
I am trying to enter a blank row inbetween every row that is in a worksheet
and I can't figure out a way to do it. I am going to be merging this
information and when I merge it without blank rows, it does not pull all of
the rows. Please help with any information you may have.





All times are GMT +1. The time now is 10:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com