+ Reply to Thread
Results 1 to 3 of 3

run-time error '13' Type Mismatch error

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    run-time error '13' Type Mismatch error

    I have code that prevents the user from choosing a duplicate choice from a list - everything works pretty much the way it should, but if the user Deletes or clears content in that range I get a run-time error '13' Type Mismatch error.

    What can be added to not have this happen? When I debug it point to

    Please Login or Register  to view this content.

    The complete Code is:

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: run-time error '13' Type Mismatch error

    Maybe:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: run-time error '13' Type Mismatch error

    Thanks for the rep

    The first line eliminates multiple cell selection, which would be typical if a whole row, or whole column, or a block of cells were selected for deletion. And the second ignores changes where the content of the target cell has been deleted .


    Regards, TMS

+ 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 Error
    By slohman in forum Excel General
    Replies: 1
    Last Post: 08-03-2014, 09:49 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. [SOLVED] run-time error '13' Type Mismatch error
    By Blake 7 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-16-2012, 08:59 AM
  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. 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

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