Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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.
|


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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.





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
Macro to delete blank rows in a data range Youlan Excel Discussion (Misc queries) 5 September 17th 08 08:51 AM
delete rows in range - macro hindu cliparts Excel Worksheet Functions 0 November 16th 06 09:54 PM
Macro to copy, paste in a range and then delete Garry Excel Discussion (Misc queries) 0 March 23rd 06 07:37 PM
Need macro to delete all text cells in an Excel range GVT Excel Worksheet Functions 2 February 26th 06 12:25 PM
Selecting an Excel tab, Delete Worksheet command is not active missyjes New Users to Excel 1 September 23rd 05 03:16 PM


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