Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Delete Selected Records

maybe something like this:

Sub delete_zero()
Dim lRow As Long
For lRow = 100 To 1 Step -1
With ActiveSheet.Cells(lRow, 1)
If .Text = "0" Then .EntireRow.Delete
End With
Next lRow
End Sub

it will loop through the range A1:A100 going bottom to top.


--
Hope that helps.

Vergel Adriano


"Ian B" wrote:

Hi,

How do I delete an entire rows but only when column A = 0

Thanks


Ian


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
Delete records when certain records have duplicate column data JVroom New Users to Excel 1 January 26th 09 06:23 PM
show number of selected records in Excel Jonathan Dore Excel Discussion (Misc queries) 6 May 10th 07 03:01 PM
Trouble identifying selected records richardwo Excel Discussion (Misc queries) 4 January 16th 07 01:48 PM
Summing user selected records rmullen Excel Programming 6 December 8th 05 09:06 PM
How can I ensure #records in a selected set always shows in Excel RangerBill Excel Discussion (Misc queries) 1 August 8th 05 08:14 PM


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