ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   naming range moves me to macro (https://www.excelbanter.com/excel-programming/378312-naming-range-moves-me-macro.html)

Martin

naming range moves me to macro
 
If I try to give a range the same name as one of my macros from the name box
(at the top left of the workbook) I find I'm suddenly looking at that macro
with my cursor flashing in the VB editor.

Is there any way to stop this or at least capture it as it will confuse
users? Strangely I don't get the same problem if naming from Insert, Name,
Define.

Thanks

Peter T

naming range moves me to macro
 
I don't think you can avoid that. When you type into the names box on the
input bar it does the something like this

If a Defined name or Macro name exists then
Application.Goto ("the-Typed-or-Selected-Name-of-a-Name-or-Procedure")
Else: define a range name or name a selected object

Best avoid duplicate Procedure and & Defined names

Regards,
Peter T

"Martin" wrote in message
...
If I try to give a range the same name as one of my macros from the name

box
(at the top left of the workbook) I find I'm suddenly looking at that

macro
with my cursor flashing in the VB editor.

Is there any way to stop this or at least capture it as it will confuse
users? Strangely I don't get the same problem if naming from Insert,

Name,
Define.

Thanks





All times are GMT +1. The time now is 03:37 AM.

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