+ Reply to Thread
Results 1 to 8 of 8

Error if no match found

  1. #1
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Error if no match found

    Hi..
    Trying to find how to handle, if there is not a match found in monthsheet1 or monthsheet2.
    appreciate help.


    Please Login or Register  to view this content.
    Thank you so much...
    Appreciate clicking the * Add Reputation button on your left side, if you want say thanks to me

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Error if no match found

    How have you declared row1 and row2?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Re: Error if no match found

    Quote Originally Posted by Norie View Post
    How have you declared row1 and row2?
    dim row1 as long
    dim row2 as long

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Error if no match found

    Declare them as Variant, then you can test for error using IsError.

  5. #5
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Re: Error if no match found

    Quote Originally Posted by Norie View Post
    Declare them as Variant, then you can test for error using IsError.
    could you please write the code for IsError to handle the above example.
    I would appreciate

  6. #6
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Re: Error if no match found

    Can someone write me the ISERROR code to hand the above issue...
    Will appreciate your help

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Error if no match found

    What do you want to happen when there is an error?

  8. #8
    Forum Contributor
    Join Date
    01-14-2004
    Location
    India
    MS-Off Ver
    365
    Posts
    264

    Re: Error if no match found

    Quote Originally Posted by Norie View Post
    What do you want to happen when there is an error?
    If there is no match in any of the sheets, then I need to go to the next x

+ 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] Match one cell with another, if match found copy adjacent cells
    By Xiophoid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-07-2013, 05:50 AM
  2. error message "match not found for row "
    By jazbath in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2009, 05:44 PM
  3. Replies: 5
    Last Post: 10-11-2008, 04:01 PM
  4. Replies: 3
    Last Post: 04-25-2007, 08:27 AM
  5. Replies: 0
    Last Post: 08-25-2005, 03:46 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