+ Reply to Thread
Results 1 to 5 of 5

.Range.Value Type Mismatch Error

  1. #1
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    .Range.Value Type Mismatch Error

    I am able to do this:

    Please Login or Register  to view this content.
    but if I want to check a range of cells like so:

    Please Login or Register  to view this content.
    I get a Type Mismatch Error. What is the correct syntax?

  2. #2
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: .Range.Value Type Mismatch Error

    You have to check each cell individually. You can however get the system to check a list of cells individually through a loop

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    Re: .Range.Value Type Mismatch Error

    Ok that's a good idea but this is what I'm trying to do:

    Please Login or Register  to view this content.
    Is there a way to check for the value AB1234 in the range C5:C9 without having to check the other cells for each iteration?

  4. #4
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: .Range.Value Type Mismatch Error

    Cells are checked individually. You want have multiple criteria in your IF statement then you write them all.

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

    Re: .Range.Value Type Mismatch Error

    If you want to make sure they are ALL true then just use another variable to track....:

    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.

+ 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. Type Mismatch error when calculating a set of functions on a multiple range
    By AnnaDana in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-20-2013, 02:27 PM
  2. Type mismatch error assigning range to array......
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-11-2012, 06:27 PM
  3. Range and Find function error: Type Mismatch
    By VBNewb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2011, 02:10 PM
  4. Replies: 5
    Last Post: 07-27-2010, 10:58 AM
  5. Type Mismatch error & subscript out of range error
    By Jeff Wright in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2005, 03: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