Thanks. The ActiveCell.Value part was what I needed.
Now I have another question. How do I check to see If ActiveCell.Value =
#N/A. I can't seem to figure this one out.
> Something like this perhaps:-
>
[quoted text clipped - 15 lines]
> > Thanks in advance,
> > Barb Reinhardt
Chip Pearson - 24 Mar 2006 15:04 GMT
Barb,
> Now I have another question. How do I check to see If
> ActiveCell.Value =
> #N/A. I can't seem to figure this one out.
Try
If Application.WorksheetFunction.IsNA(ActiveCell.Value) Then
Debug.Print "is n/a"
Else
Debug.Print "not n/a"
End If

Signature
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
> Thanks. The ActiveCell.Value part was what I needed.
>
[quoted text clipped - 25 lines]
>> > Thanks in advance,
>> > Barb Reinhardt
Dave Peterson - 24 Mar 2006 15:19 GMT
One more way:
if activecell.text = "#N/A" then
> Thanks. The ActiveCell.Value part was what I needed.
>
[quoted text clipped - 20 lines]
> > > Thanks in advance,
> > > Barb Reinhardt

Signature
Dave Peterson
Barb Reinhardt - 24 Mar 2006 16:29 GMT
How about if the cell value is #Value! ???
> One more way:
>
[quoted text clipped - 24 lines]
> > > > Thanks in advance,
> > > > Barb Reinhardt
Dave Peterson - 24 Mar 2006 16:49 GMT
if activecell.text = "#Value!" then
or
if iserror(activecell.value) then
to catch all kinds of errors
> How about if the cell value is #Value! ???
>
[quoted text clipped - 30 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
Barb Reinhardt - 24 Mar 2006 17:06 GMT
For some reason, it didn't work as I expected ... and then I realized I'd
goofed something else up. Thanks.
> if activecell.text = "#Value!" then
>
[quoted text clipped - 37 lines]
> > >
> > > Dave Peterson