+ Reply to Thread
Results 1 to 3 of 3

Checking if Cell Data exists in an array

  1. #1
    Registered User
    Join Date
    10-31-2013
    Location
    Doncaster, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Checking if Cell Data exists in an array

    Hello all

    I have been working on some code for a spreadsheet solution and have ran into an issue when trying to implement some validation
    I am trying to make it so that if the data in a cell is not in an array of names the program will not continue with its functions, but if it is in the array the program will continue as normal. So far I have the following code

    Please Login or Register  to view this content.
    When I try to run this code, I get an error highlighting "If Weebl.Contains(Range("J10")) Then" and a message box that says "Compile Error: Invalid Qualifier

    Is there any way to fix this?

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Checking if Cell Data exists in an array

    try change to
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-31-2013
    Location
    Doncaster, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Checking if Cell Data exists in an array

    This worked perfectly, thanks for the quick reply

+ 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. Checking if a table already exists
    By JoeSkittles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2013, 09:11 AM
  2. Userform for data entry checking is a value exists
    By mdrover in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2013, 12:18 AM
  3. Checking if a file exists
    By duckboy1981 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-12-2008, 05:30 AM
  4. Checking if a data point exists on a chart
    By CFD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2008, 09:08 AM
  5. Checking if Validation exists in the cell
    By Lech Jaszowski in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2006, 07:30 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