+ Reply to Thread
Results 1 to 4 of 4

Mismatch error mystery

  1. #1
    Registered User
    Join Date
    08-19-2006
    Location
    New York, NY
    MS-Off Ver
    MS Office 2013
    Posts
    33

    Angry Mismatch error mystery

    I have come across a problem that I cannot figure out.

    I created a code that populates an array from two separate workbooks (B & C). However, when I run the code I receive a type mismatch 13 error.

    It was suggested to me to set a range and pull the data from the range,instead of populating an array, which to my surprise worked.

    But I am still confused. Why would I get an mismatch error while using an array, but not the range.

    I have attached the workbooks in question.

    A uses the array and produces the error (array)

    A_2 using the range and works

    B and C are the worksheets the source info.


    Please help.
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Mismatch error mystery

    Rather than us dig through five workbooks, perhaps you could post the relevant section of the code and highlight the line that errors?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-19-2006
    Location
    New York, NY
    MS-Off Ver
    MS Office 2013
    Posts
    33

    Re: Mismatch error mystery

    Please Login or Register  to view this content.
    This is the line the highlights when I debug the code

    Please Login or Register  to view this content.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Mismatch error mystery

    Look in the Locals window. What is CLARITYRange when the code breaks?

+ 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- What is the reason behind the error message?
    By Endre111 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2014, 02:03 PM
  2. Run time error 13 Type mismatch error
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-24-2014, 08:17 AM
  3. Complile Error: Type Mismatch ??? After adding error trap
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-22-2012, 03:50 PM
  4. Conditional Formatting - Run Time Error '13' Type Mismatch Error
    By ksp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2011, 07:37 PM
  5. Mystery: System Error and blank squares
    By Bettergains in forum Excel General
    Replies: 0
    Last Post: 09-07-2005, 03:05 PM
  6. Mystery Constant Causes #Value Error
    By Dave in forum Excel General
    Replies: 6
    Last Post: 08-05-2005, 01:05 AM
  7. 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

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