ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,737
- Office Version
- 2007
- Platform
- Windows
Assuming you only will ever have #REF ! errors and no other type of errors and that a VBA solution is desired...Just to clarify... the question Fluff was asking is could there ever be any other errors in Column A besides [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=REF]#REF [/URL] ! errors?
Also are you looking for a VBA solution or a manual solution?
Sub DeleteRefErrors()
Columns("A").SpecialCells(xlFormulas, xlErrors).EntireRow.Delete
End Sub
Private Sub Workbook_Open()With Worksheets("INV DETAILS")
Columns("A").SpecialCells(xlFormulas, xlErrors).EntireRow.Delete
End With
End Sub
Private Sub Workbook_Open()With Worksheets("HONDA SHEET")
.Activate
Range("A13").Select
ActiveWindow.ScrollRow = 13
End With
With Worksheets("INV DETAILS")
.Columns("A").SpecialCells(xlFormulas, xlErrors).EntireRow.Delete
End With
End Sub