> If there are no constants in that range, then this will fail...
>
[quoted text clipped - 35 lines]
>
> - Show quoted text -
I'm saying that if that range AI3:AI4 contains formulas or is empty, then that
code will fail. It's looking for constants. If there are no constants, then it
won't work.
Maybe you should double check that range once more.
> > If there are no constants in that range, then this will fail...
> >
[quoted text clipped - 45 lines]
>
> BTW it worked previously with no problems, but in doesn't any more

Signature
Dave Peterson
Sean - 23 Sep 2007 19:33 GMT
> I'm saying that if that range AI3:AI4 contains formulas or is empty, then that
> code will fail. It's looking for constants. If there are no constants, then it
[quoted text clipped - 57 lines]
>
> - Show quoted text -
Definitely Dave, there are values in AI3:AI4 in sheet E-Figures
Dave Peterson - 23 Sep 2007 23:12 GMT
Maybe you're unprotecting the wrong sheet:
Replace:
Sheets("E-Figures").Select
ActiveSheet.Unprotect Password:="123"
With
Sheets("E-Figures").Unprotect Password:="123"
or even
thisworkbook.Sheets("E-Figures").Unprotect Password:="123"
======
The only time I've seen .specialcells fail is when the sheet is protected or
there are no constants in that range.
I still think it's your data--not the code.
> > - Show quoted text -
>
> Definitely Dave, there are values in AI3:AI4 in sheet E-Figures

Signature
Dave Peterson