Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Define a name local to a worksheet

I have a workbook with many sheets with identical format and similar data. I
need to have cells and ranges named, but the names need to be local to a
particular worksheet.

I've accomplished that in the past by setting up one worksheet, naming
everything to my liking, then making a copy of the worksheet. In the copy,
all the names are nicely qualified with the name of the sheet.

I've done that, and now I need to expand the worksheets. I can't find a way
to add new names and make them local to any sheet. I don't want to go through
the copy process again due to the the impact on other sheets that collect
data from all these other sheet.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Define a name local to a worksheet

When you define the name--either via the Insert|Name|define dialog or by typing
the name into the namebox (to the left of the formulabar, you can include the
sheetname.

'Sheet 99'!myNameHere
(in the Namebox, with the range selected--and make sure you hit enter)

Or
Names in workbook: 'Sheet 99'!myNameHere
Refers to: ='Sheet 99'!$A$2:$Z$99
(in the dialog)




If you have to localize (or globalize) and existing name, you'll want to use Jan
Karel Pieterse's (with Charles Williams and Matthew Henson) Name Manager:
NameManager.Zip from http://www.oaltd.co.uk/mvp

In fact, if you're working with names, you'll want this!

Rich Davies wrote:

I have a workbook with many sheets with identical format and similar data. I
need to have cells and ranges named, but the names need to be local to a
particular worksheet.

I've accomplished that in the past by setting up one worksheet, naming
everything to my liking, then making a copy of the worksheet. In the copy,
all the names are nicely qualified with the name of the sheet.

I've done that, and now I need to expand the worksheets. I can't find a way
to add new names and make them local to any sheet. I don't want to go through
the copy process again due to the the impact on other sheets that collect
data from all these other sheet.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Define a name local to a worksheet

Thanks. That works for me in the Insert|Name|Define dialog, but not in the
namebox. The dialog is much more tedious, but I guess I'll have to use what
works.

I'm using Excel 2004 on a MacBook. Maybe there's a problem since I really
don't have an enter key. Maybe it just doesn't work. Don't know.

"Dave Peterson" wrote:

When you define the name--either via the Insert|Name|define dialog or by typing
the name into the namebox (to the left of the formulabar, you can include the
sheetname.

'Sheet 99'!myNameHere
(in the Namebox, with the range selected--and make sure you hit enter)

Or
Names in workbook: 'Sheet 99'!myNameHere
Refers to: ='Sheet 99'!$A$2:$Z$99
(in the dialog)




If you have to localize (or globalize) and existing name, you'll want to use Jan
Karel Pieterse's (with Charles Williams and Matthew Henson) Name Manager:
NameManager.Zip from http://www.oaltd.co.uk/mvp

In fact, if you're working with names, you'll want this!

Rich Davies wrote:

I have a workbook with many sheets with identical format and similar data. I
need to have cells and ranges named, but the names need to be local to a
particular worksheet.

I've accomplished that in the past by setting up one worksheet, naming
everything to my liking, then making a copy of the worksheet. In the copy,
all the names are nicely qualified with the name of the sheet.

I've done that, and now I need to expand the worksheets. I can't find a way
to add new names and make them local to any sheet. I don't want to go through
the copy process again due to the the impact on other sheets that collect
data from all these other sheet.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Define a name local to a worksheet

It works ok in WinTel land. I would bet that it would work with Mac's, too (but
I don't use them).

Try it again and if it fails, explain what you did in detail.

If you don't get a good answer in this forum, I'd try:
news://msnews.microsoft.com/microsof...c.office.excel



Rich Davies wrote:

Thanks. That works for me in the Insert|Name|Define dialog, but not in the
namebox. The dialog is much more tedious, but I guess I'll have to use what
works.

I'm using Excel 2004 on a MacBook. Maybe there's a problem since I really
don't have an enter key. Maybe it just doesn't work. Don't know.

"Dave Peterson" wrote:

When you define the name--either via the Insert|Name|define dialog or by typing
the name into the namebox (to the left of the formulabar, you can include the
sheetname.

'Sheet 99'!myNameHere
(in the Namebox, with the range selected--and make sure you hit enter)

Or
Names in workbook: 'Sheet 99'!myNameHere
Refers to: ='Sheet 99'!$A$2:$Z$99
(in the dialog)




If you have to localize (or globalize) and existing name, you'll want to use Jan
Karel Pieterse's (with Charles Williams and Matthew Henson) Name Manager:
NameManager.Zip from http://www.oaltd.co.uk/mvp

In fact, if you're working with names, you'll want this!

Rich Davies wrote:

I have a workbook with many sheets with identical format and similar data. I
need to have cells and ranges named, but the names need to be local to a
particular worksheet.

I've accomplished that in the past by setting up one worksheet, naming
everything to my liking, then making a copy of the worksheet. In the copy,
all the names are nicely qualified with the name of the sheet.

I've done that, and now I need to expand the worksheets. I can't find a way
to add new names and make them local to any sheet. I don't want to go through
the copy process again due to the the impact on other sheets that collect
data from all these other sheet.


--

Dave Peterson


--

Dave Peterson
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
VBA function to define name in a worksheet Clinton W[_2_] Excel Discussion (Misc queries) 2 May 12th 10 08:43 AM
Copy a worksheet and ensure range names stay local Darren Hill[_4_] Excel Programming 0 April 5th 07 08:21 AM
Worksheet copy problem - local names Jack Sheet Excel Discussion (Misc queries) 2 December 2nd 04 10:02 AM
Copy a range from a CSV file in a webpage to my local worksheet Jav Pa Excel Programming 4 August 25th 04 01:57 AM
Reference styles and local/non-local formulae - international problems. Alan Howells[_2_] Excel Programming 2 February 24th 04 09:52 AM


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