LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Deleted empty row for some columns

Please help for the above subject.

the following module only able delete the empty row at Column A only.
Sub DeleteEmptyRow()
Dim cRows As Long
Dim i As Long

cRows = Cells(Rows.Count, "A").End(xlUp).Row
For i = cRows To 1 Step -1
If Cells(i, "A").Value = "" Then
Cells(i, "A").Delete Shift:=xlUp
End If
Next
End Sub

But i need to delete a range from Column A to H.

Thank you for your kind attention.
 
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
Deleted columns reset their width to zero Dave O Excel Discussion (Misc queries) 4 October 30th 08 12:10 AM
accidentally deleted two columns, can I recover them Technophobe Excel Discussion (Misc queries) 6 January 18th 07 08:52 PM
Deleted Columns replaced with formatted columns DAMman21 Excel Discussion (Misc queries) 0 May 30th 06 10:31 PM
deleted 2 columns by mistake - what do I do Lang8er Excel Discussion (Misc queries) 4 November 1st 05 06:31 PM
formulas refer to columns that are deleted Sharon[_7_] Excel Programming 1 December 19th 03 07:16 PM


All times are GMT +1. The time now is 08:46 AM.

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"