ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Renaming Defined Name (https://www.excelbanter.com/excel-discussion-misc-queries/38870-renaming-defined-name.html)

rickv

Renaming Defined Name
 

How do you Rename Defined Name?


--
rickv
------------------------------------------------------------------------
rickv's Profile: http://www.excelforum.com/member.php...o&userid=25942
View this thread: http://www.excelforum.com/showthread...hreadid=393202


hierarchii


Click "Insert" in the toolbar, and select "Name". Select "Define" and it
will bring up a list of all the defined names in the workbook. You can
remove a name or change the cell to which the name is attached.

Hope this helps.


--
hierarchii
------------------------------------------------------------------------
hierarchii's Profile: http://www.excelforum.com/member.php...o&userid=25943
View this thread: http://www.excelforum.com/showthread...hreadid=393202


KL

Go to menu InsertNameDefine
Select the name to rename
Change its name and press the 'Add' button
Select the old name and press the 'Delete' button
Press 'OK' button

Another way is to do it by VBA code

Regards,
KL


"rickv" wrote in
message ...

How do you Rename Defined Name?


--
rickv
------------------------------------------------------------------------
rickv's Profile:
http://www.excelforum.com/member.php...o&userid=25942
View this thread: http://www.excelforum.com/showthread...hreadid=393202




Norman Jones

Hi Rick,

And, if it is a VBA solution that you need, then try something like:

'==========================
Public Sub Tester()

Dim sStr As String

With ActiveWorkbook.Names
sStr = .Item("OldName").RefersTo
.Item("OldName").Delete
.Add "NewName", RefersTo:=sStr

End With

End Sub
'<<==========================

---
Regards,
Norman



"rickv" wrote in
message ...

How do you Rename Defined Name?


--
rickv
------------------------------------------------------------------------
rickv's Profile:
http://www.excelforum.com/member.php...o&userid=25942
View this thread: http://www.excelforum.com/showthread...hreadid=393202




Bob Phillips

Rick,

You can't rename a name, you have to delete it and then create a new name
with the same refers to value.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"rickv" wrote in
message ...

How do you Rename Defined Name?


--
rickv
------------------------------------------------------------------------
rickv's Profile:

http://www.excelforum.com/member.php...o&userid=25942
View this thread: http://www.excelforum.com/showthread...hreadid=393202




Charles Williams

You can rename a name using VBA
ActiveWorkbook.Names("Joe").Name = "freddy"

but any existing references in formulae etc to the previous name will NOT be
changed and so will be invalid.

regds
Charles Williams
Decision Models

"Bob Phillips" wrote in message
...
Rick,

You can't rename a name, you have to delete it and then create a new name
with the same refers to value.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"rickv" wrote in
message ...

How do you Rename Defined Name?


--
rickv
------------------------------------------------------------------------
rickv's Profile:

http://www.excelforum.com/member.php...o&userid=25942
View this thread:
http://www.excelforum.com/showthread...hreadid=393202







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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com