+ Reply to Thread
Results 1 to 4 of 4

type mismatch 13 in excel 2010

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    8

    type mismatch 13 in excel 2010

    The following code worked perfectly under excel 2003, but in 2010 returns error 'type mismatch 13' in the following line "If Array2(1, i) <> 0 Then"

    Anyone has any ideas how to solve this ?

    Thx in advance

    Sonny

    Here is the code:


    Please Login or Register  to view this content.

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. I have added code tags for you because you are a new member, see rule #3. --6StringJazzer
    Last edited by desonny; 01-21-2014 at 04:12 PM. Reason: code tags

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: type mismatch 13 in excel 2010

    Did you run the code step by step with F8 ? attach please a sample file for testing
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: type mismatch 13 in excel 2010

    Type mismatch sounds like you are trying to do some math function with a string in the array variable, or vice versa.

    I agree with patel, you should step through your code and see what is in that variable before it gives the error.

    http://www.cpearson.com/Excel/DebuggingVBA.aspx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: type mismatch 13 in excel 2010

    Perhaps you have error values in your sheet.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

+ 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. Error 13 type mismatch in excel 2010
    By excelbugs_help in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2013, 05:56 AM
  2. Error 13 Type Mismatch in excel VB
    By sid_excelforum in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2013, 06:14 PM
  3. Excel 2010 (Run-time error '13' type mismatch) "Debug" and "Continue" Grayed out.
    By Jeronimo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2012, 06:42 PM
  4. Type mismatch in VBA, excel 2007
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-18-2011, 03:18 PM
  5. type mismatch in 2010
    By Bryn's Dad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2011, 01:07 PM

Tags for this Thread

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