+ Reply to Thread
Results 1 to 2 of 2

Deleting item from name manager working intermittently

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Deleting item from name manager working intermittently

    Please Login or Register  to view this content.
    ONLY works if the "Item_Types" named range was already in there when the workbook opened.

    I have a script that creates a named range with that name, but needs to delete it later (not the data in the named range, just the reference to it).

    For whatever reason, it fails to delete the named range I created giving me this error:

    "application defined or object defined error"


    PLEASE NOTE, I am NOT trying to delete the data REFERENCED by the named range, I am trying to delete the reference TO the named range. I.e. the end result of this formula should change NOTHING on the workbook, but should simply remove the "Item_Types" line from the name manager.


    This script shows how to delete a name:

    Please Login or Register  to view this content.
    But it deletes it based on what it references. I want to delete it based on what the name is.
    Last edited by ks100; 01-14-2014 at 10:47 AM.

  2. #2
    Registered User
    Join Date
    01-24-2012
    Location
    Swindon, England
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Deleting item from name manager working intermittently

    Hi

    I have tried your code and do not have a problem if the range is created before you try to delete it as below.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Shift+Space and Ctrl+Space shortcuts intermittently working
    By yumyumdimsum in forum Excel General
    Replies: 8
    Last Post: 10-14-2017, 11:54 AM
  2. Name Manager Not Working
    By admirable in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-03-2014, 11:31 AM
  3. Code snippet working intermittently?!
    By bscdave in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-27-2012, 12:34 PM
  4. Conditional formatting double space intermittently working
    By RefillMyInk in forum Excel General
    Replies: 1
    Last Post: 08-24-2011, 11:59 AM
  5. Formulas working intermittently
    By edgebox in forum Excel General
    Replies: 1
    Last Post: 11-10-2009, 07:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1