Continuing Difficulties W/ Sum For Variable-length Column

  • Thread starter Thread starter Chuckles123
  • Start date Start date
C

Chuckles123

Bob,

Thanks for your help very much.

I tried the following, starting my range at F1, and continuing down th
F Col:

ActiveWorkbook.Names.Add Name:="TEMPLE", RefersTo:= _
"$F$1:OFFSET($F$1,,,COUNTA($F:$F))"

It did not work.
Chuckles12
 
I am confused. If you add a name via VBA you only need to do it once, not
for every cell in the column.
 
That is because you left out a necessary equal sign:

Sub Tester3()
ActiveWorkbook.Names.Add Name:="TEMPLE", RefersTo:= _
"=$F$1:OFFSET($F$1,,,COUNTA($F:$F))"
End Sub

worked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top