Select the Column which have 0 Value and Run this Macro
Sub DeleteBySelection() On Error GoTo err: Application.ScreenUpdating = False Dim rng As Range Dim cell As Range Set rng = Selection For Each cell In rng If cell.Value = 0 Then cell.EntireRow.Delete Next Application.ScreenUpdating = True err: If err.Number <> 0 Then err.Clear Resume Next End If End Sub From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of arpit rajput Sent: Thursday, July 28, 2011 2:50 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Vba Code Required for Delete Entire Row Hi Experts, I want to remove entire row when each cell value =0 in column J see in attached file. Anybody suggest me VBA code to delete all 0 value rows. Thanks ARPIT KUMAR -- ---------------------------------------------------------------------------- ------ Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel