Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Referencing named ranges

I have created some code that counts a range and adds the count total and sum
defines that range as a named range. This part works fine, and I use this
code to count several ranges. I then want to put these counts together at
the bottom of the worksheet. Again, I can easily reference the range, and it
puts the result as a static number, but if the count of the range changes
(which it usually does), the numbers at the bottom do not update. I would
like it to be able to update whenever the range updates.

This the code I am using. The range name is EE_Count_Total.

ActiveCell.Formula = Range("=ee_count_total")

Can anyone help? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Referencing named ranges

if ee_count_total is the name of a cell that contains the count then:

ActiveCell.Formula = "=ee_count_total"


--
Regards,
Tom Ogilvy

"FinChase" wrote in message
...
I have created some code that counts a range and adds the count total and

sum
defines that range as a named range. This part works fine, and I use this
code to count several ranges. I then want to put these counts together at
the bottom of the worksheet. Again, I can easily reference the range, and

it
puts the result as a static number, but if the count of the range changes
(which it usually does), the numbers at the bottom do not update. I would
like it to be able to update whenever the range updates.

This the code I am using. The range name is EE_Count_Total.

ActiveCell.Formula = Range("=ee_count_total")

Can anyone help? Thanks!



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
referencing named ranges in VBA Dave F Excel Discussion (Misc queries) 5 January 25th 07 06:46 PM
Referencing Named Ranges using values in a cell eggman Excel Discussion (Misc queries) 2 September 23rd 06 06:30 PM
Referencing Named Ranges ExcelRookie Excel Worksheet Functions 2 March 6th 06 12:50 PM
INDIRECT and Named Ranges referencing closed workbook gpie Excel Worksheet Functions 9 October 6th 05 11:24 PM
UPDATED - Referencing named Ranges within a Nested IF formula JTinAtlanta Excel Worksheet Functions 1 July 29th 05 11:46 PM


All times are GMT +1. The time now is 08:25 AM.

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

About Us

"It's about Microsoft Excel"