+ Reply to Thread
Results 1 to 4 of 4

How to make it resume if item to delete is not found?

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

    How to make it resume if item to delete is not found?

    At the beginning and end of my script I need it to check and delete entries under the name manager.

    The script should look something like this in plain text:

    Look in name manager for item named "States"

    Delete ALL entries named "States" regardless of what worksheet or cells they refer to.


    ***********Script runs normally here, not breaking if nothing was found to delete**********************************

    Then at the end of the script, do the same as the beginning, look for items named "States" in the name manager and delete all entries.


    When I tried just coding

    Please Login or Register  to view this content.
    It would give me an error if nothing was found to delete. If nothing is found to delete I need it to just continue on with the script as normal without bothering the user.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to make it resume if item to delete is not found?

    Maybe:

    Please Login or Register  to view this content.

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

    Re: How to make it resume if item to delete is not found?

    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

    Please Login or Register  to view this content.
    When you say "YOUR CODE" are you referring to the code to delete the names or my entire script?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to make it resume if item to delete is not found?

    Your Code to Delete. If a name is not found then the code should resume to the end.

+ 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. vlookup -when item not found, how can i return 0 instead of N/A?
    By mheinmiller in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2009, 12:45 PM
  2. Hide rows up to item found
    By itcheg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-01-2009, 04:52 PM
  3. Macro to delete item if not found on a list
    By hunsnowboarder in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-28-2009, 03:52 PM
  4. checking in vba if item is found within a range
    By djb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2006, 09:00 PM
  5. How do I know on which worksheet an item is found?
    By Talar in forum Excel General
    Replies: 2
    Last Post: 06-21-2006, 07:00 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