#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hi Guys...

The answer could be as shown below:


Sub Delete_Rows()
'
Dim rwIndex, ColIndex
'
rwIndex = 1
ColIndex = 4
Do Until Range("A" & rwIndex) = ""
Cells(rwIndex, ColIndex).Select
If ActiveCell = 0 Then
Selection.EntireRow.Delete
End If
rwIndex = rwIndex + 1
Loop
Range("A1").Select
End Su

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Hi Guys...

OR, without selections. Some confusion here about Col A and colindx 4.??

sub dr()
x=cells(rows.count,4).end(xlup).row
for i=x to 1 step -1
if cells(i,4)=0 then rows(i).delete
next i
end sub
--
Don Guillett
SalesAid Software

"kiza " wrote in message
...
The answer could be as shown below:


Sub Delete_Rows()
'
Dim rwIndex, ColIndex
'
rwIndex = 1
ColIndex = 4
Do Until Range("A" & rwIndex) = ""
Cells(rwIndex, ColIndex).Select
If ActiveCell = 0 Then
Selection.EntireRow.Delete
End If
rwIndex = rwIndex + 1
Loop
Range("A1").Select
End Sub


---
Message posted from
http://www.ExcelForum.com/



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
I need your help guys please Tara Excel Worksheet Functions 13 June 29th 08 11:11 AM
Thanks Guys J.Mart[_2_] Excel Discussion (Misc queries) 2 December 11th 07 01:09 PM
need help guys psyherin Excel Worksheet Functions 0 November 30th 05 05:21 AM
Please Help Guys! ivanov_nv Excel Worksheet Functions 0 November 9th 04 04:17 PM
Please Help Guys! ivanov_nv Excel Worksheet Functions 2 November 9th 04 03:50 PM


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