cresswell80
New Member
- Joined
- Oct 12, 2005
- Messages
- 46
hi all,
i'm trying to write code that deletes a full column whenever a £ sign crops up in row 16... can anyone tell me what's wrong with the following:
thanks
i'm trying to write code that deletes a full column whenever a £ sign crops up in row 16... can anyone tell me what's wrong with the following:
Code:
Public Sub DELCOLS()
For intcount = 1 To 300
If InStr(1, Cells(16, intcount), "£") > 0 Then
Columns(1, intcount).EntireColumn.Delete
End If
Next intcount
End Sub
thanks