+ Reply to Thread
Results 1 to 5 of 5

Cell match to display msgbox if found

  1. #1
    Forum Contributor
    Join Date
    08-10-2014
    Location
    Alberta
    MS-Off Ver
    2016
    Posts
    128

    Cell match to display msgbox if found

    I have a code that when a cell is double clicked, a value is entered. I want it to first see if there is a match in another range and if there is to display a msgbox. However, what happens is the msgbox comes up every time there is a match, even if it is not in the same row. I am not sure why that is exactly, what do I need to change this?

    I want when you double click a cell it checks the range and a msgbox goes up if a match is found, others it input a value into the cell. However, the cell is not the one that needs to be matched, it is 5 cells to the left (Hence why I tried to use CellX).

    Please Login or Register  to view this content.

  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: Cell match to display msgbox if found

    Why are you looping through the range G6:G38, I thought you only wanted to check one value?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    08-10-2014
    Location
    Alberta
    MS-Off Ver
    2016
    Posts
    128

    Re: Cell match to display msgbox if found

    I don't really know how to set one value. I don't want to loop through

  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: Cell match to display msgbox if found

    Do you want to see if the check the value in column B of the row you've double clicked to see if it's in the range O4:O19?

    If you do try this.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-10-2014
    Location
    Alberta
    MS-Off Ver
    2016
    Posts
    128

    Re: Cell match to display msgbox if found

    Thank you. Now I know how to set specific cells. It worked for me.

+ 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 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
  2. [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
  3. Match mutliple values and then display text if found
    By Weasel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2008, 07:58 PM
  4. Display Title for a Match found in a table
    By tsatsos007 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-05-2007, 11:22 AM
  5. display cell value in msgbox formatted as %
    By rgarber50 in forum Excel General
    Replies: 5
    Last Post: 07-10-2005, 11:05 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