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

In my spreadsheet I have yellow lines that say result. I want to delete these lines. How would I do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Deleteing Rows

Try a example from this page
http://www.rondebruin.nl/delete.htm

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Amber" wrote in message ...
In my spreadsheet I have yellow lines that say result. I want to delete these lines. How would I do this?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Deleteing Rows

something like
for each c in selection
if c.interior.colorindex=6 then c.rows.delete
next

--
Don Guillett
SalesAid Software

"Amber" wrote in message
...
In my spreadsheet I have yellow lines that say result. I want to delete

these lines. How would I do this?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Deleteing Rows

Amber,

Here's some simple code that will delete any rows with 'Result' in column A

Application.ScreenUpdating = False

With ActiveWorkbook

With .ActiveSheet
.Rows(1).Insert
.Range("A1").Value = "Test"
.Columns("A:A").AutoFilter Field:=1, Criteria1:="result"
.Cells.SpecialCells(xlCellTypeVisible).EntireRow.D elete
End With

End With

Application.ScreenUpdating = True


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Amber" wrote in message
...
In my spreadsheet I have yellow lines that say result. I want to delete

these lines. How would I do this?


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
Deleteing koba Excel Discussion (Misc queries) 2 November 25th 05 04:11 AM
Deleteing empty rows Ken G. Excel Discussion (Misc queries) 3 June 28th 05 01:18 AM
Deleteing some Rows Deepwater Excel Discussion (Misc queries) 1 April 1st 05 06:23 PM
Deleteing Blank Rows Tim Otero Excel Programming 0 August 12th 03 05:23 PM
Deleteing Blank Rows Tom Ogilvy Excel Programming 0 August 12th 03 04:29 PM


All times are GMT +1. The time now is 01:02 AM.

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"