Hoping someone can assist. I currently have a module with a procedure which contains a Selection.Find command. I just use it to look up a value ("e-mail") and then replace contents of cells to the right of it using the offset command.
For some reason, I keep getting the following error "Object variable or With block variable not set" on the
Selection.Find... line. Anyone have thoughts on this? Thanks.
Sub ClearEmail()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
Columns("A:A").Select<o></o>
Range("A1").Activate<o></o>
ActiveCell.Select<o></o>
<o></o>
Selection.Find(What:="e-mail", After:=ActiveCell, LookIn:=xlFormulas, LookAt _<o></o>
:=xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _<o></o>
False).Activate<o></o>
<o></o>
ActiveCell.Offset(0, 7) = "------------"<o></o>
ActiveCell.Offset(0, 8) = "------------"<o></o>
ActiveCell.Offset(0, 9) = "------------"<o></o>
ActiveCell.Offset(0, 10) = "------------"<o></o>
ActiveCell.Offset(0, 11) = "------------"<o></o>
<o></o>
End Sub<o></o>
For some reason, I keep getting the following error "Object variable or With block variable not set" on the
Selection.Find... line. Anyone have thoughts on this? Thanks.
Sub ClearEmail()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
Columns("A:A").Select<o></o>
Range("A1").Activate<o></o>
ActiveCell.Select<o></o>
<o></o>
Selection.Find(What:="e-mail", After:=ActiveCell, LookIn:=xlFormulas, LookAt _<o></o>
:=xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _<o></o>
False).Activate<o></o>
<o></o>
ActiveCell.Offset(0, 7) = "------------"<o></o>
ActiveCell.Offset(0, 8) = "------------"<o></o>
ActiveCell.Offset(0, 9) = "------------"<o></o>
ActiveCell.Offset(0, 10) = "------------"<o></o>
ActiveCell.Offset(0, 11) = "------------"<o></o>
<o></o>
End Sub<o></o>