+ Reply to Thread
Results 1 to 7 of 7

If value exists, go to end. Otherwise continue.

  1. #1
    Forum Contributor
    Join Date
    04-27-2009
    Location
    Dallas, TX
    MS-Off Ver
    Office 365
    Posts
    215

    If value exists, go to end. Otherwise continue.

    Basically I want the code to start by looking in the sheet "dump" for the string "Check Figure". If the string exists, then it displays a message then ends the macro. If the value does not exist, then just continue running the macro. This should be very simple but I'm drawing a blank. Here is what I have so far.

    Please Login or Register  to view this content.
    Last edited by mvparker79; 07-02-2014 at 10:41 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: If value exists, go to end. Otherwise continue.

    No need for else

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-27-2009
    Location
    Dallas, TX
    MS-Off Ver
    Office 365
    Posts
    215

    Re: If value exists, go to end. Otherwise continue.

    It is still giving me the error "Object variable or With block variable not set"

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: If value exists, go to end. Otherwise continue.

    Much better
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-27-2009
    Location
    Dallas, TX
    MS-Off Ver
    Office 365
    Posts
    215

    Re: If value exists, go to end. Otherwise continue.

    Sorry, when I remove the string "Check Figure", THAT is when it gives me that error.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: If value exists, go to end. Otherwise continue.

    Change this line

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-27-2009
    Location
    Dallas, TX
    MS-Off Ver
    Office 365
    Posts
    215

    Re: If value exists, go to end. Otherwise continue.

    BOOYA! You rock AB33! Thanks a million. I knew it should be easy.

+ 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] Error Worksheet Exists - need code to continue to next name if it does
    By missit in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2014, 12:10 AM
  2. vba to add new row and continue new #
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2013, 03:42 PM
  3. continue code
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2008, 10:01 AM
  4. [SOLVED] to continue down in the same row
    By alex178 in forum Excel General
    Replies: 2
    Last Post: 07-08-2006, 12:40 PM
  5. Continue
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2006, 01:55 PM

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