ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   What Excel 4.0 macro command do I need to use to delete a range na (https://www.excelbanter.com/excel-programming/321600-what-excel-4-0-macro-command-do-i-need-use-delete-range-na.html)

Bobby@HSBC

What Excel 4.0 macro command do I need to use to delete a range na
 
I do not want to have to re-write my whole macro into VB if there is an Excel
4.0 command that will delete range names.


Tom Ogilvy

What Excel 4.0 macro command do I need to use to delete a range na
 
for each nm in ActiveWorkbook.Names
nm.Delete
Next

should do it.

--
Regards,
Tom Ogilvy


"Bobby@HSBC" wrote in message
...
I do not want to have to re-write my whole macro into VB if there is an

Excel
4.0 command that will delete range names.




Jim Rech

What Excel 4.0 macro command do I need to use to delete a range na
 
The XL4 macro is: =DELETE.NAME(name_text)

--
Jim Rech
Excel MVP
"Bobby@HSBC" wrote in message
...
|I do not want to have to re-write my whole macro into VB if there is an
Excel
| 4.0 command that will delete range names.
|



Tom Ogilvy

What Excel 4.0 macro command do I need to use to delete a range na
 
I read your question several times and guess I still didn't understand what
you were asking for. Thanks to Jim Rech for giving the correct answer.
Sorry for the confusion.

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
for each nm in ActiveWorkbook.Names
nm.Delete
Next

should do it.

--
Regards,
Tom Ogilvy


"Bobby@HSBC" wrote in message
...
I do not want to have to re-write my whole macro into VB if there is an

Excel
4.0 command that will delete range names.







All times are GMT +1. The time now is 11:17 AM.

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