Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
RealGomer
 
Posts: n/a
Default Deleting all but one blank row

I have a file created by another program that inserts six blank rows after
each row of data. The exported format is Excel 8.0 Extended (whatever that
means). I found several really helpful suggestions how to delete all of the
blankrows. The one to use the Go To Special command seems to be the easiest.
Unfortunately, I want to keep one blank row as a divder between each data
row. Any suggestions?
--
I know enuff to be dangerous.
  #2   Report Post  
Posted to microsoft.public.excel.misc
MH
 
Posts: n/a
Default Deleting all but one blank row

You're not able to add a row under "insert"?

"RealGomer" wrote:

I have a file created by another program that inserts six blank rows after
each row of data. The exported format is Excel 8.0 Extended (whatever that
means). I found several really helpful suggestions how to delete all of the
blankrows. The one to use the Go To Special command seems to be the easiest.
Unfortunately, I want to keep one blank row as a divder between each data
row. Any suggestions?
--
I know enuff to be dangerous.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Deleting all but one blank row

How about deleting all the blanks, then add a row back.

In fact, if this is just for appearance, you could select all teh used rows and
just double the rowheight.

This makes sorting/filtering/pivottables/charting much easier.

But...

Option Explicit
Sub testme()
Dim iRow As Long
Dim LastRow As Long
Dim FirstRow As Long
Dim wks As Worksheet

Set wks = Worksheets("Sheet1")

With wks
FirstRow = 1
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row

For iRow = LastRow To FirstRow + 1 Step -1
.Rows(iRow).Insert
Next iRow
End With
End Sub



RealGomer wrote:

I have a file created by another program that inserts six blank rows after
each row of data. The exported format is Excel 8.0 Extended (whatever that
means). I found several really helpful suggestions how to delete all of the
blankrows. The one to use the Go To Special command seems to be the easiest.
Unfortunately, I want to keep one blank row as a divder between each data
row. Any suggestions?
--
I know enuff to be dangerous.


--

Dave Peterson
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
Deleting Blank Rows Reeni New Users to Excel 4 December 15th 05 01:56 AM
Deleting Blank Cells Wholesale? Trey Excel Discussion (Misc queries) 1 October 6th 05 09:37 PM
Deleting Blank Characters in a Cell PokerZan Excel Discussion (Misc queries) 4 June 3rd 05 09:43 PM
Deleting blank cells in a column KatyLady Excel Discussion (Misc queries) 6 May 30th 05 03:47 PM
Deleting rows with blank cells Batman Excel Worksheet Functions 10 February 16th 05 06:01 PM


All times are GMT +1. The time now is 11:13 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"