+ Reply to Thread
Results 1 to 5 of 5

Runtime Error '13' Type Mismatch

  1. #1
    Registered User
    Join Date
    12-17-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    9

    Runtime Error '13' Type Mismatch

    Ok, next question from this clueless idiot:

    In the workbook attached (test copy), if I insert a new line into the Current Allocations worksheet, I get a popup with Runtime Error '13' Type Mismatch. If I click debug, it shows the below code, with the piece in bold highlighted yellow. I occasionally get the message when performing other actions within the worksheet as well.

    Please Login or Register  to view this content.
    What is causing the issue here, and how do I fix it? Thanks in advance.

    Coaching Database (Copy).xlsm

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Runtime Error '13' Type Mismatch

    that probably because when you insert a new row Target is empty or spanning more than 1 cell.
    You'll need to add an extra condition like "if not isempty(Target)" or "if Target.colums.count >1".
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Registered User
    Join Date
    12-17-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Runtime Error '13' Type Mismatch

    Excuse my complete ignorance, but how would you insert that into the code I posted before?

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Runtime Error '13' Type Mismatch

    This will do the tric:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-17-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Runtime Error '13' Type Mismatch

    Thanks! It now works exactly as I want/need it to.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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