+ Reply to Thread
Results 1 to 9 of 9

"type mismatch" error

  1. #1
    Registered User
    Join Date
    06-16-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    28

    "type mismatch" error

    Hello,
    I am trying to compare a list of offline values in one worksheet, and to find those vlaues in another worksheet. I was wondering why i get "type mismatch" in the line that is "If OffValue = NonList.Range("A4", "K110").Value Then". I am trying to compare the offline values in the offline sheet to the other sheets. i want to select the range to compare. is there a better way? if the values are found on the list after comparing i want to delete them as well

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    06-16-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    28

    Re: "type mismatch" error

    if this is not clear, i can try to explain it better, but my main concern is why am i getting a mismatch error?

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: "type mismatch" error

    This might be causing one of the issues. What is the purpose of "Delete"?

    Please Login or Register  to view this content.
    Also you are trying to compare one value to the values in multiple cells at the same time. There is an issue with the way you are doing it. Would probably need to use .Find or another method.

    Submit an example worksheet with before and after descriptions.
    Last edited by stnkynts; 07-14-2015 at 10:25 AM.

  4. #4
    Registered User
    Join Date
    06-16-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    28

    Re: "type mismatch" error

    Quote Originally Posted by stnkynts View Post
    This might be causing one of the issues. What is the purpose of "Delete"?

    Please Login or Register  to view this content.
    So i have a list in the "Offline" that i want to check on List1, and if the values in offline are in list1, i want to delete the value on List1

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: "type mismatch" error

    Submit an example worksheet with before and after descriptions.

  6. #6
    Registered User
    Join Date
    06-16-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010
    Posts
    28

    Re: "type mismatch" error

    ExampleWorkbook.xlsx

    this is my example workbook. i have explained what i am trying to do inside the file.


    EDIT

    my real workbook has values throught a range A1:K110 as well
    Last edited by bbhockey; 07-14-2015 at 10:54 AM.

  7. #7
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: "type mismatch" error

    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,626

    Re: "type mismatch" error

    Try this code
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: "type mismatch" error

    my real workbook has values throught a range A1:K110 as well
    Please Login or Register  to view this content.

+ 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] Code displays error message reading "type mismatch"
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-12-2014, 09:32 AM
  2. Instr() function giving error: "Type mismatch"
    By arjun.majumdar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-22-2013, 04:17 AM
  3. Excel 2010 (Run-time error '13' type mismatch) "Debug" and "Continue" Grayed out.
    By Jeronimo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2012, 06:42 PM
  4. [SOLVED] VBA Excel 2007 : Autofit Merge Cells Error "Run-time error '13': Type Mismatch"
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 04:10 PM
  5. Replies: 5
    Last Post: 08-08-2010, 03:03 PM
  6. Merged cells cause "Runtime error 13 type mismatch" problem
    By Ralph Malph in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2006, 08:55 AM
  7. Error Handling to mitigate "Run Time Erorr 13 Type Mismatch"
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2005, 09: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