Results 1 to 4 of 4

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

Threaded View

missnk Run-time error 13 - type... 11-12-2013, 08:07 PM
stnkynts Re: Run-time error 13 - type... 11-12-2013, 08:12 PM
Trebor76 Re: Run-time error 13 - type... 11-12-2013, 08:14 PM
missnk Re: Run-time error 13 - type... 11-12-2013, 08:38 PM
  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

    Case "Insert Current Time"
    The issue only arises when I try to delete data from multiple cells at once. Please help! Thanks




    Private Sub Worksheet_Change(ByVal Target As Range)
     
    If (Target.Column >= 1 And Target.Column <= 3) And (Target.Row >= 1 And Target.Row <= 40) Then
    Select Case Target
     
    Case "Insert Current Time"
    Call MacroInsertTime
     
    Case "Insert Current Date"
    Call MacroInsertDate
     
    Case Else
    'Do nothing
     
        End Select
          
        End If
     
    End Sub
    Last edited by missnk; 11-12-2013 at 08:44 PM.

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