To OssieMac, Dave & Don,
Thanks for your help. I'll give these suggestions a try, & see what I can
make of them.
BTW Dave, I've been setting up the Declarations in my macros so that the
make a little more sense to me. The Public range TabACell is the A cell, in
a row of the Table sheet, usually starting at A2. I've got a number of
macros to do my work for me, & I'm trying to introduce some sort of
consistency to them. But, don't tell my boss that Excell is doing my work,
otherwise I'll lose all of my infamy at work...
Thanks once again.
--
Andrew
Telstra Fleet
Melbourne
Australia
"Dave Peterson" wrote:
> Or just use a formula in column J:
>
> This would go in J2:
> =counta(indirect("'"&d2&"'!m:m"))-1
>
> Or to check for a missing worksheet:
> =if(iserror(cell("address",indirect("'"&d2&" acc'!a1"))),"missing",
> counta(indirect("'"&d2&" acc'!m:m"))-1)
>
>
> Don Guillett wrote:
> >
> > Have you tried this simple approach. Change variables to suit or use an
> > array
> > Sub placeformula()
> > strASheet.Range("b2").Formula = "=counta(sheet1!m:m)"
> > End Sub
> >
> > --
<<snip>>