Delete All Rows Except.....
Closed
fawchert
-
Nov 12, 2008 at 10:32 PM
aquarelle Posts 7140 Registration date Saturday April 7, 2007 Status Moderator Last seen March 25, 2024 - Nov 14, 2008 at 01:51 PM
aquarelle Posts 7140 Registration date Saturday April 7, 2007 Status Moderator Last seen March 25, 2024 - Nov 14, 2008 at 01:51 PM
Related:
- Delete All Rows Except.....
- Delete my whatsapp account without app - Guide
- How to delete a row in a table in word - Guide
- How to delete whatsapp account without phone - Guide
- How to delete snapchat account - Guide
- How to delete icloud tabs - Guide
3 responses
helpmeout
Posts
6
Registration date
Wednesday November 12, 2008
Status
Member
Last seen
May 18, 2009
5
Nov 13, 2008 at 04:29 AM
Nov 13, 2008 at 04:29 AM
hey there,
well i will provide you with a link where you will be able to search for what you are willing to do:
http://office.microsoft.com/en-us/excel/results.aspx?qu=delete+some+rows&sc=9&av=O10100&ofcresset=1
hope it will help you
well i will provide you with a link where you will be able to search for what you are willing to do:
http://office.microsoft.com/en-us/excel/results.aspx?qu=delete+some+rows&sc=9&av=O10100&ofcresset=1
hope it will help you
aquarelle
Posts
7140
Registration date
Saturday April 7, 2007
Status
Moderator
Last seen
March 25, 2024
491
Nov 13, 2008 at 11:20 AM
Nov 13, 2008 at 11:20 AM
Hi,
Is the word "blocked" always written in the same column ? If it is the case what column ?
See you
Is the word "blocked" always written in the same column ? If it is the case what column ?
See you
aquarelle
Posts
7140
Registration date
Saturday April 7, 2007
Status
Moderator
Last seen
March 25, 2024
491
Nov 14, 2008 at 01:51 PM
Nov 14, 2008 at 01:51 PM
Hello,
Hope this will work according to your demand :
Best regards
Hope this will work according to your demand :
Sub testDelete() Dim plage As Range Dim numlig As Integer Dim numcol As Integer Dim cpt As Integer Dim nblig As Integer Dim nbcol As Integer Set plage = Range("A65536").End(xlUp).CurrentRegion nblig = plage.Rows.Count nbcol = plage.Columns.Count For numlig = nblig To 1 Step -1 cpt = 0 For numcol = 1 To nbcol If plage.Rows(numlig).Columns(numcol) = "Blocked" Then cpt = cpt + 1 End If Next numcol If cpt = 0 Then Rows(numlig).delete End If Next numlig End Sub
Best regards