Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default delete multiple range names

I have a workbook with multiple sheets. The workbook was built by someone
else and has multiple range names that are no longer needed. How can I
delete all range names to start fresh?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default delete multiple range names

Hi,
In excel 2007 , go to Formulas, Name manager, choose the name to delet and
click delete

"mnsue" wrote:

I have a workbook with multiple sheets. The workbook was built by someone
else and has multiple range names that are no longer needed. How can I
delete all range names to start fresh?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 117
Default delete multiple range names

The following macro will delete all range names in the active workbook

Sub Delete_Named_Ranges()
Dim i As Integer
For i = 1 To ActiveWorkbook.Names.Count
ActiveWorkbook.Names(i).Delete
Next i
End Sub

"mnsue" wrote:

I have a workbook with multiple sheets. The workbook was built by someone
else and has multiple range names that are no longer needed. How can I
delete all range names to start fresh?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 833
Default delete multiple range names

In EXCEL 2007 take the following actions:-

Formulas / Name Manager / highlight those you wish to delete / Delete / OK.

Please hit Yes if my comments have helped.

Thanks.

"mnsue" wrote:

I have a workbook with multiple sheets. The workbook was built by someone
else and has multiple range names that are no longer needed. How can I
delete all range names to start fresh?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default delete multiple range names

How would it work in Excel 2003 because that is what I'm using? I can delete
one at a time but not multiple range names.

"Eduardo" wrote:

Hi,
In excel 2007 , go to Formulas, Name manager, choose the name to delet and
click delete

"mnsue" wrote:

I have a workbook with multiple sheets. The workbook was built by someone
else and has multiple range names that are no longer needed. How can I
delete all range names to start fresh?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default delete multiple range names

I tried this but get an error message of 1004. It seems to hang up on the
ActiveWorkbood.Names. I am working in excel 2003 if that makes a difference.

"RonaldoOneNil" wrote:

The following macro will delete all range names in the active workbook

Sub Delete_Named_Ranges()
Dim i As Integer
For i = 1 To ActiveWorkbook.Names.Count
ActiveWorkbook.Names(i).Delete
Next i
End Sub

"mnsue" wrote:

I have a workbook with multiple sheets. The workbook was built by someone
else and has multiple range names that are no longer needed. How can I
delete all range names to start fresh?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default delete multiple range names

Try with Dim i as Long


Gord Dibben MS Excel MVP

On Mon, 18 Jan 2010 09:30:01 -0800, mnsue
wrote:

I tried this but get an error message of 1004. It seems to hang up on the
ActiveWorkbood.Names. I am working in excel 2003 if that makes a difference.

"RonaldoOneNil" wrote:

The following macro will delete all range names in the active workbook

Sub Delete_Named_Ranges()
Dim i As Integer
For i = 1 To ActiveWorkbook.Names.Count
ActiveWorkbook.Names(i).Delete
Next i
End Sub

"mnsue" wrote:

I have a workbook with multiple sheets. The workbook was built by someone
else and has multiple range names that are no longer needed. How can I
delete all range names to start fresh?


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default delete multiple range names

It did not work. I'm still getting an error message of 1004. I think it
said invalid name. Any other suggestions?

"Gord Dibben" wrote:

Try with Dim i as Long


Gord Dibben MS Excel MVP

On Mon, 18 Jan 2010 09:30:01 -0800, mnsue
wrote:

I tried this but get an error message of 1004. It seems to hang up on the
ActiveWorkbood.Names. I am working in excel 2003 if that makes a difference.

"RonaldoOneNil" wrote:

The following macro will delete all range names in the active workbook

Sub Delete_Named_Ranges()
Dim i As Integer
For i = 1 To ActiveWorkbook.Names.Count
ActiveWorkbook.Names(i).Delete
Next i
End Sub

"mnsue" wrote:

I have a workbook with multiple sheets. The workbook was built by someone
else and has multiple range names that are no longer needed. How can I
delete all range names to start fresh?


.

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default delete multiple range names

I misspoke because I did not read properly.

Dim i as Integer produces error 9........subscript out of range

Dim i as Long works fine.

Error 1004 is entirely something else.

I don't know what would produce a 1004 error

Perhaps someone can jump in so's we can learn?


Gord


On Mon, 18 Jan 2010 13:07:01 -0800, mnsue
wrote:

It did not work. I'm still getting an error message of 1004. I think it
said invalid name. Any other suggestions?

"Gord Dibben" wrote:

Try with Dim i as Long


Gord Dibben MS Excel MVP

On Mon, 18 Jan 2010 09:30:01 -0800, mnsue
wrote:

I tried this but get an error message of 1004. It seems to hang up on the
ActiveWorkbood.Names. I am working in excel 2003 if that makes a difference.

"RonaldoOneNil" wrote:

The following macro will delete all range names in the active workbook

Sub Delete_Named_Ranges()
Dim i As Integer
For i = 1 To ActiveWorkbook.Names.Count
ActiveWorkbook.Names(i).Delete
Next i
End Sub

"mnsue" wrote:

I have a workbook with multiple sheets. The workbook was built by someone
else and has multiple range names that are no longer needed. How can I
delete all range names to start fresh?


.


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
How to Delete blanks between a range and populate only the names inthe given range Yuvraj Excel Discussion (Misc queries) 2 November 4th 09 08:32 PM
How to delete a hundred range names at once? Dima Excel Discussion (Misc queries) 4 August 7th 08 11:26 AM
How to delete a hundred range names at once? Dima Excel Worksheet Functions 4 August 7th 08 11:26 AM
not delete worksheets from names in a range DARREN FONG Excel Discussion (Misc queries) 3 November 11th 05 05:31 PM
Dynamic range names, multiple criteria, sumproduct [email protected] Excel Discussion (Misc queries) 1 September 20th 05 02:58 AM


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