+ Reply to Thread
Results 1 to 3 of 3

Runtime Error 13 Type Mismatch on one computer, but not another

  1. #1
    Registered User
    Join Date
    02-24-2017
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    65

    Runtime Error 13 Type Mismatch on one computer, but not another

    Hi all,

    I have a macro in a spreadsheet that is running 100% fine on a Windows 7 computer.

    However, when I tried running it on a different computer (That used to be windows 8, but has been updated to windows 10)

    I get this error:
    Runtime Error 13 Type Mismatch

    I tried running office safe mode (Holding ctrl+double clicking excel shortcut to launch it), but got the same error when I ran the macro?

    Since the error is not in the code, what do I do to fix it on my new machine?

    Thanks!

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Runtime Error 13 Type Mismatch on one computer, but not another

    .
    If the code generates an error, the offending line of code will be highlighted in yellow.

    If you cannot see a yellow highlighted line of code, place this phrase at the top of your Macro : OPTION EXPLICIT

    That should point out the offending line.


    The error you are seeing indicates a variable has been DIM (dimmed) but you are using the wrong type. One example: Dim i As String when it should have been Dim i As Integer

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Runtime Error 13 Type Mismatch on one computer, but not another

    Can you post the code, specifically the line causing the error?
    If posting code please use code tags, see here.

+ 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] Runtime error 13 Type mismatch
    By logisticsexcel in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-31-2017, 02:43 PM
  2. [SOLVED] Runtime Error 13 - Type Mismatch
    By trobb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2017, 02:06 AM
  3. RunTime Error 13: Type MIsmatch
    By tariq2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2013, 10:47 AM
  4. [SOLVED] runtime error 13 type mismatch
    By Justair07 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-28-2013, 02:46 PM
  5. RunTime Error 13 and Type Mismatch...
    By TheNewGuy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-24-2010, 09:24 AM
  6. runtime error '13' type mismatch
    By longhorn23 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-18-2010, 04:53 PM
  7. Runtime Error 13 - type mismatch
    By hindlehey in forum Excel General
    Replies: 1
    Last Post: 11-07-2005, 10:55 AM

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