+ Reply to Thread
Results 1 to 7 of 7

how to add message box if not found

  1. #1
    Registered User
    Join Date
    11-20-2018
    Location
    Orlando, Florida
    MS-Off Ver
    2013
    Posts
    9

    how to add message box if not found

    Hi guys,

    I have this code. i tried adding an else statement but its not working.

    I want to add a warning or messagebox that when a client search for a text, when not found it displays client id not found

    Thank you.


    Please Login or Register  to view this content.
    Last edited by shakeyy; 11-20-2018 at 02:52 PM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: how to add message box if not found

    Maybe:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: how to add message box if not found

    How about:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: how to add message box if not found

    Hello shakeyy,

    Welcome to the Forum!

    Moderation removed

    Regards.
    Last edited by Winon; 11-20-2018 at 04:18 PM. Reason: Code Tags are added
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Registered User
    Join Date
    11-20-2018
    Location
    Orlando, Florida
    MS-Off Ver
    2013
    Posts
    9

    Re: how to add message box if not found

    Quote Originally Posted by Mumps1 View Post
    Maybe:
    Please Login or Register  to view this content.
    Thank you! I appreciate the help. I actually tried this but whenever i type a client id. it always returns as not found regardless of whether the id exist or not THANK YOU





    Quote Originally Posted by Arkadi View Post
    How about:

    Please Login or Register  to view this content.
    OMG I just tried it. IT WORKED. THANK YOU SO MUCH!!!!!

  6. #6
    Registered User
    Join Date
    11-20-2018
    Location
    Orlando, Florida
    MS-Off Ver
    2013
    Posts
    9

    Re: how to add message box if not found

    Quote Originally Posted by Winon View Post
    Hello shakeyy,

    Welcome to the Forum!

    I have to point out to you, that;


    Thank you. So sorry for that. I updated my post.

  7. #7
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: how to add message box if not found

    Hi shakeyy,

    Thanks for the feedback, and for complying with Winon's moderation request
    Please mark the thread as solved if you are satisfied? (select Thread Tools from the menu link above and mark this thread as SOLVED.)
    Also Mumps1 had the right idea, but EVERY line that got checked for a match would return the message that ID wasn't found, except for the row in the loop where it WAS found.

+ 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] Need pop-up message when match not found
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2016, 09:47 AM
  2. [SOLVED] Message (in one window) for each file found/not found
    By kboy1289 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-08-2013, 04:03 PM
  3. match not found - message
    By jazbath in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2008, 06:34 PM
  4. Message if duplicate found
    By WhiteKelso in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2007, 11:36 PM
  5. Not found message
    By ledzepe in forum Excel General
    Replies: 1
    Last Post: 12-01-2006, 12:32 PM
  6. [SOLVED] Window Message for not value found
    By maperalia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2006, 08:10 PM
  7. If not found get a message
    By Fgomez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2005, 07:06 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