+ Reply to Thread
Results 1 to 3 of 3

Insert Sheet from Template / Named Range Conflict

  1. #1
    Registered User
    Join Date
    07-05-2005
    Posts
    11

    Question Insert Sheet from Template / Named Range Conflict

    Hello, everyone! Hope you're all doing well! It's been awhile since I've posted only because I couldn't solve this issue on my own with the help of F1 and Google.

    I've got a workbook that I use to itemize and total the costs of different material assemblies. Each material assembly resides on its own worksheet within the workbook, and the workbook contains a summary sheet that totals up the costs from these many worksheets. The worksheets for the material assemblies are added from a template that has named ranges for cells containing subtotals with a scope of Workbook. The workbook to which they're being added has the same named ranges with the same scope so that all such added worksheets have their subtotals added up into a grand total on the summary sheet in the main workbook. However, when the new sheets are added from the template, their named ranges have their scope changed to Worksheet instead of Workbook and their subtotals are therefore never added to the summary sheet in the workbook. As usual, I'm looking for a solution that would preferably involve native worksheet functions or even changes to application settings I may be missing but I am amenable to VBA procedures if the consensus is that's the only option. Thanks to all for reading!

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Insert Sheet from Template / Named Range Conflict

    Hi,

    I was doing some research on this earlier (for a similar reason) for someone I've been helping - I ended up recommending just manually re-defining the names as there were only 24 to be changed. If you've got a lot more to do, the only page I've found which has some code which might work for you is this one:
    http://stackoverflow.com/questions/1...ed-range-scope
    About 3/4 of the way down the page is a post which says this, 'Check out these two subs that reverse each other and flip the scope (worksheet to workbook or reverse) of all named ranges that refer to a range on the active sheet.' which sound like it's exactly what you want. However...please note that I have not tried any of the solutions so can't say if/how well they work, sorry!

    Good luck.

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  3. #3
    Registered User
    Join Date
    07-05-2005
    Posts
    11
    That's definitely very good information, Aardigspook, I appreciate you sharing that!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Master sheet into template, copy template to sheets named after master column.
    By M4R1N3R in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2015, 12:24 PM
  2. Replies: 0
    Last Post: 02-11-2015, 01:45 AM
  3. [SOLVED] Automatically answer Named Conflict Dialog with No and set Named range to variable
    By mlj61289 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2013, 08:32 PM
  4. Template issue. Insert ComboBox.value in sheet if sheet is visible
    By timtim89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2012, 05:22 PM
  5. VBA - Creating a new named sheet with a sheet template
    By Glensafro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2012, 06:49 AM
  6. Named Range Template
    By amyxkatexx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2010, 09:52 AM
  7. Macro to insert named range in each sheet
    By rbanks in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-28-2006, 10:32 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1