+ Reply to Thread
Results 1 to 3 of 3

Displaying A Message Box

  1. #1
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Displaying A Message Box

    I have found several examples for checking whether the value entered into a cell is equal to that in another cell and if not displaying a Message Box.

    What I am struggling with is how to extend this to a range (array) of cells.

    For example, if the value entered into cell A1 equals data already in cells C1, D1 and E1 then a Message should be displayed saying something like ‘number already used.’

    The code should also be capable of performing the same check when entering data in cells A2, A3, etc.

    Please can anybody help me.

    Thank you.

  2. #2
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Displaying A Message Box

    You could try something like this?

    Please Login or Register  to view this content.
    Last edited by realniceguy5000; 07-20-2011 at 01:02 PM. Reason: Change Script:
    Thank You, Mike

    Some Helpful Hints:

    1. New members please read & follow the Forum Rules
    2. Use Code Tags...Place[code]Before the first line and[/code] After the last line.
    3. If you are pleased with a solution mark your post SOLVED.
    4. Thank those who have help you by clicking the scales at the top right of the post.

    Here...

  3. #3
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Displaying A Message Box

    Thank you for this.

    I have a further question, can the code be expanded so that data entered in columns A and B for example are checked against data in C, D and E.

    Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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