sweeneytime
Board Regular
- Joined
- Aug 23, 2010
- Messages
- 183
Hi guys,
I am getting an "error 91 object variable not set". I have tried a few things and google but no joy. I just want the operation to finish so I can start another one. ps The symbol I'm searching for doesn't paste into here, box with a question mark in it.
Anybody got some idea's??
Thanks,
Alan
When the error strikes it highlights
I am getting an "error 91 object variable not set". I have tried a few things and google but no joy. I just want the operation to finish so I can start another one. ps The symbol I'm searching for doesn't paste into here, box with a question mark in it.
Anybody got some idea's??
Thanks,
Alan
HTML:
Sub FindEnd()
Dim Last As Long
Last = Range("A" & Rows.Count).End(xlUp).Row
For Each cell In Range("A1:A" & Last).Cells
If Cells.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate Then
ActiveCell.Rows("1:19").EntireRow.Select
Selection.Delete Shift:=xlUp
Else
End If
Next cell
End Sub
HTML:
If Cells.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate Then