-----Original Message-----
Jimmy,
You really shouldn't send emails to people without their
permission. I rarely ever open emails from people I don't
know that contain attachments. But I had a look at the
file you sent anyway. Grief dude! What a mess. It has
one sheet, with no formulas or data at all in it, and yet
you have over 500 defined names, and 17 external links,
and none of them seem to be valid (#REF errors all over
the place). Three of these defined names are showing up
as macros.
Macro Calc_Power_Rate is actually a defined name refering
to ='C:\Sim''s Project\Singapore\SPT SDH Access\[SPT Core
Network Equipment List with Pricing.xls]#REF'!$B$48
fill_nes2 is ='C:\Sim''s Project\Singapore\SPT SDH
Access\[SPT Core Network Equqipment List with Pricing.xls]
#REF'!#REF!
deployment_housekeeping is ='C:\Sim''s
Project\Singapore\SPT SDH Access\[SPT Core Network
Equipment List with Pricing.xls]#REF'!$B$992
I don't know if you need to keep any of these, so this
macro will list all the names in your book. Run it on a
blank sheet, have a look to see what you need to keep and
what can be removed.
Sub ListNames()
For a = 1 To ActiveWorkbook.Names.Count
Cells(a, 1).Value = ActiveWorkbook.Names(a).Name
Cells(a, 2).Value = ActiveWorkbook.Names(a)
Next
End Sub
If you need to keep any, you'll have to manually remove
the rest. But if you can remove all of them, then use
this macro:
Sub RemoveNames()
On Error Resume Next
For a = ActiveWorkbook.Names.Count To 1 Step -1
ActiveWorkbook.Names(a).Delete
Err.Clear
Next
End Sub
I used the error trap, because some of the names create an
error when I tried to delete them programmatically. The
names themselves are invalid because they don't use
standard characters (boxes as part of the name?). After
you run this then you'll have to manually delete 5 or 6
names that can't be removed with the macro.
Insert/Name/Define, and then go to town.
-----Original Message-----
Hi,
For normal case, delete a macro is simple. Just press
the "delete button" in macro menu.
However, for the macro that has no reference and
the "delete button" is hidden. How can I delete macro in
this case.
.
.