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

I have a vba program that uses blank templates. The template creates
a sheet where a series of calculations are made - the result of the
calculations is pulled to a third final sheet. One set of numbers is
pulled by using the code below: Problem is the template also has
the same range names on it. When the program is run it pulls the
actual info and then pulls the blank (zero) amounts into the third
(final) sheet.

Any ideas on how I can get it to select the named range from the
actual worksheet and not the template?

Thanks in advance.


Report.Range("ins_install_costs").Value =
ProjectWorkbook.Names("install_costs").RefersToRan ge.Value

PS I am not an expert code writer - I inherited this.
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
Named ranges scope / workbook/worksheet level named ranges- changeswith variable use... christian_spaceman Excel Programming 3 December 24th 07 01:15 PM
union of named ranges based only on the names of those ranges sloth Excel Programming 3 October 2nd 06 03:18 AM
Copy data in named ranges to a newer version of the same template to identical ranges handstand Excel Programming 0 August 21st 06 03:51 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
named ranges - changing ranges with month selected gr8guy Excel Programming 2 May 28th 04 04:50 AM


All times are GMT +1. The time now is 09:47 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"