OK. It worked and now it does not. I don't know what I did. I'm pasting
below the code that is in my worksheet, not module.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim foundCell As Range
Set foundCell = Worksheets("All Items").Cells.Find _
(What:=Target.Value, LookAt:=xlWhole)
If Not foundCell Is Nothing Then
MsgBox Target.Value
End If
End Sub
--
Thanks - K
"Kristen" wrote:
> Thanks for all of your help. I just tried it on a sample and it looks like
> it is exactly what I wanted. I have bought a couple of books, but there is
> still alot that the books don't include and I have been tryiing to figure out.
>
> You have been a huge help!
> --
> Thanks - K
>
>
> "Incidental" wrote:
>
> > Hi Again Kristen
> >
> > Sorry there is a reference to a range in the previous code that is not
> > required, i forgot to remove it before posting... the code below is
> > correct...
> >
> > Option Explicit
> > Dim FoundCell As Range
> >
> > Private Sub Worksheet_Change(ByVal Target As Range)
> >
> > Set FoundCell = Worksheets("Sheet3").Cells.Find _
> > (What:=Target.Value, LookAt:=xlWhole)
> >
> > If Not FoundCell Is Nothing Then
> >
> > MsgBox Target.Value & " was found in the list on sheet3"
> >
> > End If
> >
> > End Sub
> >
> > Steve
> >
> >
|