Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Deleting names with errors

Hi Jack,

I tried adding the line
If Instr("#N/A",Onm.Refersto)0 Then Onm.Delete
immediately after the test for #REF!
but it does not delete that name.


Change this line in my original code :

If Instr("#Ref!",Onm.Refersto)0 Then

To:

If Instr("#Ref!",Onm.Refersto)0 Or Instr("#N/A!",Onm.Refersto)0 Then

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com

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
deleting names from the name box Amy C Excel Discussion (Misc queries) 4 May 12th 06 11:00 AM
deleting duplicate names torbau Excel Discussion (Misc queries) 0 March 8th 06 04:59 PM
deleting duplicate names chris Excel Worksheet Functions 1 February 16th 06 08:42 PM
Deleting Names Rob Bovey Excel Programming 0 September 14th 04 08:30 PM
Deleting range names CiaraG[_4_] Excel Programming 1 May 10th 04 04:39 PM


All times are GMT +1. The time now is 06:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"