Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Name range visability

I am programatically creating a workbook. I copy some worksheets over
and need to give a name to a range of cells so another sheet can
reference them. I used this code:

Names.Add Name:=RangeName, RefersTo:=ReferString, Visible:=True

The name appears just find in the sheet named, but the other sheets
don't seem to know about the named range. The cells show the #REF!
error and the name box is empty. I tried "Thisworkbook.Names", but got
the same result. How can I make the names visable to the other
worksheets?

TIA.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Name range visability


wrote:
I am programatically creating a workbook. I copy some worksheets over
and need to give a name to a range of cells so another sheet can
reference them. I used this code:

Names.Add Name:=RangeName, RefersTo:=ReferString, Visible:=True

The name appears just find in the sheet named, but the other sheets
don't seem to know about the named range. The cells show the #REF!
error and the name box is empty. I tried "Thisworkbook.Names", but got
the same result. How can I make the names visable to the other
worksheets?

TIA.


Also, how do I make it so that the copied sheets refer to the new
workbook. That is, I have OldWB.Sheet1 and OldWB.Sheet2. I copy both to
NewWB. I want the cell in NewWB.Sheet2 to refer to NewWBSheet1, but it
refers to OldWB.Sheet1.

(Sorry if this is obivous stuff, but I am not an Excel or vba
programmer.)

Again, TIA.

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
How do I enter formula sum(range+range)*0.15 sumif(range=3) tkw Excel Discussion (Misc queries) 2 October 1st 09 09:17 PM
Picture Link Visability Garyw Excel Discussion (Misc queries) 2 May 8th 07 08:17 PM
Excel, highlight cells in which you are typing, for visability. skbenny Excel Discussion (Misc queries) 1 July 18th 06 10:14 PM
Trying to toggle visability of button Peter T Excel Programming 5 April 14th 05 12:13 AM
Trying to toggle visability of button Chip Pearson Excel Programming 2 April 13th 05 04:50 PM


All times are GMT +1. The time now is 04:51 PM.

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"