Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old January 6th 21, 07:37 PM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Apr 2018
Posts: 56
Default Changing workbook name in named cell

I have a workbook "Sales" which has a cell named "price" referring to "Sales!$H10". If I save the workbook as "Sales.Foreign" I want the cell "Price" now to refer to "Sales.Foreign!$H10". However, program does not allow it.

The cell "Price" continues to refer to "Sales!$H10", in other words it does not accept the new workbook name. Any idea how to get around that?

Many thanks for all help.

  #2   Report Post  
Old January 7th 21, 11:04 AM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2019
Posts: 79
Default Changing workbook name in named cell

"programmernovice" wrote in message
I have a workbook "Sales" which has a cell named "price" referring to
"Sales!$H10". If I save the workbook as "Sales.Foreign" I want the cell
"Price" now to refer to "Sales.Foreign!$H10". However, program does not
allow it.

The cell "Price" continues to refer to "Sales!$H10", in other words it
does not accept the new workbook name. Any idea how to get around that?

Many thanks for all help.


I assume your workbook has a worksheet named "Sales", same as the original
workbook name. When you rename the workbook it will still include the
worksheet named "Sales", and the Name will continue to refer to it.

If you rename the worksheet the Name should automatically update.

If there's more to this please give details of what you are working with,
for example are multiple workbooks involved with a Name referring to a cell
in a different workbook, what is the code that fails, etc

Peter T



  #3   Report Post  
Old January 7th 21, 05:53 PM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Apr 2018
Posts: 56
Default Changing workbook name in named cell


I assume your workbook has a worksheet named "Sales", same as the original
workbook name. When you rename the workbook it will still include the
worksheet named "Sales", and the Name will continue to refer to it.

If you rename the worksheet the Name should automatically update.


You are absolutely correct and I should have known that is the reason. I appreciate your help, Peter.


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
Copying a named range with a changing cell reference [email protected] New Users to Excel 1 February 21st 08 08:49 AM
Copying a Named Range with changing cell references JLGWhiz Excel Programming 0 February 20th 08 05:10 PM
Please Help! Copy named range to new workbook without changing references. Matt.Russett Excel Programming 2 April 3rd 07 02:00 PM
Copy a Named Range to a New Workbook without changing the Reference Matt.Russett Excel Programming 0 March 29th 07 03:38 PM
Changing named range reference depending on a cell's content cparaske Excel Discussion (Misc queries) 1 July 29th 05 07:06 PM


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

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright 2004-2021 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017