Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default defined names problem

On Sat, 4 Feb 2006 16:09:26 -0800, "GS"
wrote:
Thank You

This may be something to investigate. I do have macros in other
workbooks copying these named ranges. I will have to go back through
them to see if this is maybe the case. Maybe I need to even rethink
using DefineNames this way.
I do appreciate the point in a helpful direction

Scott


Hi Scott,

Defined Names can be a nightmare if they aren't managed properly. For
example, another user may be copying a sheet from another workbook that also
uses the same defined name ("June"). I find it safer to use local scope for
this because the names follow the worksheet. Unfortunately, so do global
names, and this can cause your previous defined name to change its .RefersTo
property depending on how the user answered the alert message during the copy
process. I didn't see a local scope in your description here but you might
want to modify things as follows:

Name: 'SheetName'!DefinedName
RefersTo: 'SheetName'!$Col$Row

To purge the global scope name, add a new sheet, then INSERTNAMESDEFINE,
then delete the global name from the list. Since this sheet is new it won't
have any local names listed, so all names you see in the list will be global.
Delete the sheet when you're done and save the file.



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
Defined names lesley1000 via OfficeKB.com Excel Worksheet Functions 3 December 10th 07 02:50 PM
NAMES DEFINED F. Lawrence Kulchar Excel Discussion (Misc queries) 5 November 14th 06 07:54 AM
Defined names DREED Excel Discussion (Misc queries) 3 March 10th 06 02:55 PM
Using defined names in VBA... BeSmart Excel Programming 4 September 24th 04 10:11 AM
excel calculate problem, (try to refer to defined names?) CornElvis Excel Programming 1 November 18th 03 03:55 AM


All times are GMT +1. The time now is 07:50 PM.

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"