+ Reply to Thread
Results 1 to 1 of 1

Run Time Error 13 Type Mismatch on VBA VLOOKUP

  1. #1
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2016
    Posts
    313

    Run Time Error 13 Type Mismatch on VBA VLOOKUP

    I apologize for posting this and hope nobody has spent time on it. I've found the issue. I had a cell referenced as II12 which should have been I112. The change corrected the error.

    I will close this thread now.




    My Macro is getting a type mismatch on a VLOOKUP on the second pass. The Macro is running on a worksheet for a double elimination bracket tournament. It's purpose is to check the brackets where a doubles team name would appear and assign a color to the cell.

    The Colors Array is in B81:I112

    So I have an outer loop (OLoop) and Inner Loop (ILoop) to locate a bracket with a doubles team name.

    The first pass thru the vba instruction works fine but on the second pass it gets a type mismatch and the cell is set as general in both rows.

    Here's the macro code and the mismatch is on: this line of code:
    Please Login or Register  to view this content.
    I could change code and check every row thus avoiding the vlookup but I'd rather understand why the mismatch and be more efficient. I don't think it would make a significant difference in run time.

    I am attaching three workbooks but the macro is only involved with workbook: DoubleElimDrawSheet.xlsm which has formulas to pull data from the other 2 workbooks.

    Thanks for any help and my macro code follows:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by pongmeister; 03-15-2018 at 02:01 PM.

+ 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. Run time error #13 - type mismatch
    By mlexer70 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-21-2016, 11:42 AM
  2. Run Time error 13 : Type Mismatch
    By sugaprasad in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2013, 02:06 PM
  3. Another....Run-Time Error 13 Type Mismatch
    By dtruncer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2012, 11:34 AM
  4. Run-time error '13' Type mismatch
    By caierhui in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2012, 03:20 AM
  5. [SOLVED] How to fix "Run-time error 13, type mismatch" when vlookup return value of #N/A?
    By ohlalayeah in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2012, 02:01 AM
  6. Run Time Error 13 - Type Mismatch
    By donyc in forum Excel General
    Replies: 3
    Last Post: 01-31-2012, 11:44 AM
  7. VLookup Run-time Error 13 Type Mismatch
    By KeillRandor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2009, 08:24 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