Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default macro - copy all rows with colorindex 36

Hi Brian,
Thanks for the info - I'll try that.

Regards
John





On Jun 18, 7:56 am, Brian Bennett wrote:
John, try this one. (it's not mine, but one I found)

Sub DeleteRowsThatLookEmptyinColE()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual 'pre XL97 xlManual
Dim Rng As Range, ix As Long
Set Rng = Intersect(Range("E:E"), Sheet1.UsedRange)
For ix = Rng.Count To 1 Step -1
If Trim(Replace(Rng.Item(ix).Text, Chr(160), Chr(32))) = "" Then
Rng.Item(ix).EntireRow.Delete
End If
Next
done:
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub

*** Sent via Developersdexhttp://www.developersdex.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
change colorIndex, help me write an easy macro Matt_70501 Excel Programming 4 May 28th 06 07:38 PM
Copy rows macro Chris_t_2k5[_2_] Excel Programming 8 February 19th 06 03:19 PM
EXCEL VB Macro Run Time Error 1004 - Setting ColorIndex Erwin[_2_] Excel Programming 4 April 14th 04 03:52 PM
Is ther a way to change the interior.colorindex of multiple rows sdnicsm Excel Programming 2 April 5th 04 03:53 AM
Rows ColorIndex CG Rosén Excel Programming 1 December 31st 03 01:11 PM


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