View Single Post
  #4   Report Post  
Chris Bode Chris Bode is offline
Member
 
Location: Sweden
Posts: 30
Default

Well, you can achieve this task using macro
Add a command button on the sheet from the control box and paste following codes in codes window
Formula:
Private Sub CommandButton1_Click()
    
Dim row As Integercol As Integer
    row 
1
    col 
1
    
       
    
For row 1 To 10
        
If Sheet1.Cells(rowcol).Interior.Color 12632256 Then
            
Exit Sub
        
ElseIf Sheet1.Cells(rowcol).Value "Y" Or Sheet1.Cells(rowcol).Value "N" Then
            
Exit Sub
        
Else
            
Sheet1.Rows(row).Delete
        End 
If
    
Next
    
End Sub 


Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com

Last edited by kevin : April 4th 23 at 10:24 AM