LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Delete Rows as per Text, Font Color, Font Type, Time Format

On Oct 25, 9:22*pm, " wrote:
Let's try this then - with James' permission.

Sub RowKiller()
Dim boo As Boolean, EndOfB As Long, rKill As Range
Dim i As Long
Set rKill = Nothing
EndOfB = Cells(Rows.Count, "B").End(xlUp).Row
For i = 1 To EndOfB
* * With Cells(i, "B")
* * boo = (InStr(1, .Text, ":")) Or (.Value = "ABCD") Or (.Font.Name =
"Arial" And .Font.ColorIndex = 1)
* * If boo Then
* * * * If rKill Is Nothing Then
* * * * * * Set rKill = Cells(i, "B")
* * * * Else
* * * * * * Set rKill = Union(rKill, Cells(i, "B"))
* * * * End If
* * End If
* * End With
Next
If rKill Is Nothing Then
Else
* * rKill.EntireRow.Delete
End If
End Sub

Also please visit *http://www.j-walk.com/ss/excel/tips/tip62.htmfor
checking data types.
Rgds


Hello there,
Thanks a lot ... works great!
You guys are a great great help to us.
Also a big thanks to James

Regards
Rashid
 
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
Conditional Format for font color using font color Jim Excel Worksheet Functions 2 August 29th 09 11:54 AM
Color cell font text based on cell type? How do it. Chet Excel Programming 5 November 23rd 08 09:19 PM
Delete text when font is color black CAM Excel Programming 2 June 28th 08 07:36 AM
Changing Font color based on font type or size John Excel Discussion (Misc queries) 2 February 7th 08 12:50 AM
How to change the font color using the Time format in a formula softballump Excel Discussion (Misc queries) 2 August 9th 07 03:54 AM


All times are GMT +1. The time now is 11:32 PM.

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"