+ Reply to Thread
Results 1 to 4 of 4

Run-time error 13 - type mismatch when deleting data from multiple cells at once

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Run-time error 13 - type mismatch when deleting data from multiple cells at once

    Hi,

    I’m currently making a simple macro for a spreadsheet. I have made a data validation list in some of the columns to automatically run a macro when selected to insert either the current time or the current date. It works perfectly normally, but the issue is that when I chose to highlight a block of cells in the spreadsheet and delete the data, a pop up opens and it says:

    Run-time error '13':

    Type mismatch


    And when I hit on the debug option, it highlights the following code

    Please Login or Register  to view this content.
    The issue only arises when I try to delete data from multiple cells at once. Please help! Thanks




    Please Login or Register  to view this content.
    Last edited by missnk; 11-12-2013 at 08:44 PM.

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

    Re: Run-time error 13 - type mismatch when deleting data from multiple cells at once

    Correct me if I am wrong but you want it to do nothing if you delete data from multiple cells. If so try this:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: Run-time error 13 - type mismatch when deleting data from multiple cells at once

    Hi missnk,

    Welcome to the forum (and to a fellow Sydneyite )

    I think the issue is with the MacroInsertTime macro. Could you please post that code so we can get an idea of what's wrong?

    Thanks,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  4. #4
    Registered User
    Join Date
    11-12-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Run-time error 13 - type mismatch when deleting data from multiple cells at once

    Thanks, stnkynts! That's worked perfectly! What a relief! All I needed to do was add the code

    Please Login or Register  to view this content.

    Quote Originally Posted by Trebor76 View Post
    Hi missnk,

    Welcome to the forum (and to a fellow Sydneyite )

    I think the issue is with the MacroInsertTime macro. Could you please post that code so we can get an idea of what's wrong?

    Thanks,

    Robert
    Hi Robert!

    The problem is fixed now but if you're interested, my macro for inserting the time is:
    Please Login or Register  to view this content.
    Thanks everybody I was starting to go crazy!

+ 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] Clearing cells within an Array - Run-time error 13 (Type mismatch)
    By Wobbigone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2013, 01:37 AM
  2. [SOLVED] "Run-time error '13': Type mismatch" when deleteing multiple cells from targeted columns
    By mweickdival in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2012, 01:09 PM
  3. [SOLVED] Type Mismatch Error when I highlight multiple cells and use the delete key
    By CharlieZangel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2012, 02:09 PM
  4. type mismatch error when deleting cells
    By thigham2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2008, 05:04 PM
  5. Type Mismatch Error when deleting a cell
    By Josiah in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2008, 01:07 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