Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel 2007 - Using a Named Ranges in lieu of Cell References

Can anyone tell me how I can use a Named Range (in my case "OSRD") in
lieu of the actual cell reference as shown below. The formual below
copies the Range reference to every worksheet within my workbook.
However, if i add any rows above this cell reference, the cell Named
Range "OSRD" is automatically updated with the new range on the Active
Worksheet, however, because the formula below references a specific
range and then asssigns a name to it, (in this case OSRD) it will not
update the Range Name automatically when it copies it to all other
worksheets.

My problem is that i have created a Macro that copies one specific
worksheet and then saves it to a new sheet but the original cell
reference (A114:A141) is assigned the Range Name OSRD and does not
represent the new updated Range with the inserted rows.

One more point is that the rows being inserted are not related to the
Range Name. I am creating a name range OSRD which needs to be deleted
from the newly created worksheet only, and left in tack on the
original worksheet.

I hope that makes sense.

Any help is appreciated
Rich

Dim ws As Worksheet

For Each ws In ActiveWorkbook.Worksheets
ws.Range("A114:A141").Name = " '" & ws.Name & "'!OSRD"


Next ws

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
Unable to replace cell references with Named ranges lhim2 Excel Discussion (Misc queries) 0 January 28th 08 04:13 PM
Named ranges in Excel 2007 [email protected] Excel Discussion (Misc queries) 2 September 10th 07 08:22 PM
References and named ranges Mike[_117_] Excel Programming 0 May 18th 07 07:38 PM
Named ranges: don't want absolute references sonicblue Excel Discussion (Misc queries) 0 November 22nd 05 02:05 PM
Named ranges: don't want absolute references sonicblue Excel Discussion (Misc queries) 0 November 22nd 05 02:05 PM


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