+ Reply to Thread
Results 1 to 7 of 7

Run Time error 13 : Type Mismatch

  1. #1
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Run Time error 13 : Type Mismatch

    Hi Everyone,

    I am facing a compatibility issue in excel 2007 & 2010.

    The following piece of code works fine in Excel 2007 & 2003.

    Please Login or Register  to view this content.
    But when i run this code in Excel 2010 Its throwing the below error in this line " StartRow = range.Cells(1, 2) "

    Run Time error 13 : Type Mismatch

    Am I missing anything here. Please suggest. Thank you in advance

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Run Time error 13 : Type Mismatch

    I'd suggest changing your variable names. Not a good idea to use variables like range as it can cause conflicts with the vba term. Use rng instead or MyRange or something.

  3. #3
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: Run Time error 13 : Type Mismatch

    Thank you for the response. I tried 'rangee'. one with extra 'e'

    StartRow = rangee.Cells(1, 2). But still the same issue.

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

    Re: Run Time error 13 : Type Mismatch

    How have you declared StartRow and what's in rangee.Cells(1,2)?
    If posting code please use code tags, see here.

  5. #5
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: Run Time error 13 : Type Mismatch

    Hi Norie,

    I have declared StartRow As Integer.

    rangee.Cells(1,2) has a number

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

    Re: Run Time error 13 : Type Mismatch

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  7. #7
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: Run Time error 13 : Type Mismatch

    Norie, I stepped out of my office. I am accessing the forum from mobile. Will upload once I am back to the seat. Thank you much.

+ 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] Run-time error '13': Type mismatch
    By smonzon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2013, 12:42 AM
  2. Run-time error '13' Type mismatch
    By caierhui in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2012, 03:20 AM
  3. run-time error '13' type mismatch
    By dp1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-06-2012, 02:43 AM
  4. [SOLVED] Run-Time error 13 type mismatch
    By zplugger in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-07-2012, 08:13 PM
  5. [SOLVED] Run-time error '13': Type mismatch
    By btmtdk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2012, 06:32 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