Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Continuing Difficulties W/ Sum For Variable-length Column


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

--
Chuckles12
-----------------------------------------------------------------------
Chuckles123's Profile: http://www.excelforum.com/member.php...fo&userid=1494
View this thread: http://www.excelforum.com/showthread.php?threadid=26589

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Continuing Difficulties W/ Sum For Variable-length Column

I am confused. If you add a name via VBA you only need to do it once, not
for every cell in the column.

--

HTH

RP

"Chuckles123" wrote in message
...

Bob,

Thanks for your help very much.

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

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

It did not work.
Chuckles123


--
Chuckles123
------------------------------------------------------------------------
Chuckles123's Profile:

http://www.excelforum.com/member.php...o&userid=14948
View this thread: http://www.excelforum.com/showthread...hreadid=265895



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Continuing Difficulties W/ Sum For Variable-length 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.

--
Regards,
Tom Ogilvy

"Chuckles123" wrote in message
...

Bob,

Thanks for your help very much.

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

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

It did not work.
Chuckles123


--
Chuckles123
------------------------------------------------------------------------
Chuckles123's Profile:

http://www.excelforum.com/member.php...o&userid=14948
View this thread: http://www.excelforum.com/showthread...hreadid=265895



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sum a Column of Variable length Chris G Excel Discussion (Misc queries) 4 November 7th 05 12:25 PM
Sum a column of variable length? Brian Excel Discussion (Misc queries) 5 February 3rd 05 02:26 PM
Continuing Difficulties W/ Sum For Variable-length Column Chuckles123[_3_] Excel Programming 3 October 4th 04 12:01 AM
Continuing Difficulties W/ Sum For Variable-length Column Chuckles123[_7_] Excel Programming 0 October 3rd 04 09:58 PM
Continuing Difficulties W/ Sum For Variable-length Column Chuckles123[_4_] Excel Programming 0 October 3rd 04 08:40 PM


All times are GMT +1. The time now is 03:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"