Phantom names

Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,352
I'm using Office 365 and have a workbook that uses the functions SKEW.P and STDEV.P. For some reason, the workbook keeps generating the hidden names "_xlfn.SINGLE" "_xlfn.SKEW.P" and "_xlfn.STDEV.P". This creates a problem as the code breaks if it finds these names when I try to remove all names using the following:

On Error Resume Next
For Each xName In Application.ActiveWorkbook.Names
xName.Delete
Next

I can avoid the code break by checking whether xName.Visible = True and then not deleting these names, but I would prefer to get rid of them or better still not have them intruding into my workbook in the first place.
Does anyone have any idea why these names are appearing and how to prevent it or, failing that, how to delete these names.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Those names are for backwards compatibility & whilst you can delete them they will come back.
 
Upvote 0
Hi Fluff. Many thanks for that response. it's most helpful. They seem not to be doing any harm, so I guess I shall just have to learn to live with them.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top