+ Reply to Thread
Results 1 to 4 of 4

If match found then show only one msgbox with multiple textboxes

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    If match found then show only one msgbox with multiple textboxes

    hi,
    i am using below code if value match then appears a msgbox to ignore the duplicate entries
    it works with
    textbox31, textbox32, textbox33, textbox34, textbox35, textbox36
    if above textboxes value match with Worksheets("RATE").Range("Q2:Q" & Worksheets("RATE").Cells(Rows.Count, "Q").End(xlUp).Row
    then
    its shows a msgbox("NAME ALREADY ADDED")

    if all textboxes value found in range Q2:Q then its shows 6 time msgbox
    while
    i need only one msgbox to show the msg if any textbox value match with Q2:Q

    Please Login or Register  to view this content.
    Last edited by HaroonSid; 06-30-2017 at 02:14 AM.
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: If match found then show only one msgbox with multiple textboxes

    This will get you started.

    Please Login or Register  to view this content.
    Last edited by bakerman2; 06-30-2017 at 02:21 AM. Reason: Added which names are duplicate
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: If match found then show only one msgbox with multiple textboxes

    Super duper perfect

    awesome bakerman2


    thank you very very much


    its working perfectly as i need

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: If match found then show only one msgbox with multiple textboxes

    You're welcome and thanks for rep+.

+ 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. Go to found duplicated row and show MsgBox with options
    By excellenthelp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2015, 07:42 AM
  2. [SOLVED] Cell match to display msgbox if found
    By Templemind in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2014, 07:22 AM
  3. [SOLVED] Match if not found, IsError, then display msgBox
    By Templemind in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2014, 09:57 AM
  4. Show worksheet name on match found
    By veloci in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2014, 08:21 PM
  5. Replies: 2
    Last Post: 06-29-2011, 01:36 PM
  6. Query to Show 0 if no match found
    By pr4t3ek in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-01-2009, 12:11 AM
  7. multiple errors show in one msgbox
    By lscj_tw in forum Excel General
    Replies: 0
    Last Post: 04-11-2005, 06:40 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