+ Reply to Thread
Results 1 to 5 of 5

Run time error type mismatch 13

  1. #1
    Forum Contributor
    Join Date
    03-16-2012
    Location
    Halifax, UK
    MS-Off Ver
    MS Office 365
    Posts
    206

    Run time error type mismatch 13

    Hi
    I have the following code and I get the Run time error type mismatch 13 on the line below.

    Code:
    Please Login or Register  to view this content.
    Error line:
    Please Login or Register  to view this content.
    I'm not sure what has changed now as it was running fine and did everything I wanted the code to do, now getting this error??
    I have inserted some cells and columns on the main sheet, is it something to do with this?

    Any ideas?

    Thanks
    Kieran

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Run time error type mismatch 13

    This could be empty

    Set rngData = ThisWorkbook.Worksheets("Command").Cells(1).CurrentRegion

    Or there is/are empty rows in between the cells as the code uses currentregion

  3. #3
    Forum Contributor
    Join Date
    03-16-2012
    Location
    Halifax, UK
    MS-Off Ver
    MS Office 365
    Posts
    206

    Re: Run time error type mismatch 13

    Hi AB33
    How do I fix this?
    I did insert some new empty rows and columns to the sheet to make it look better?
    Is this what the problem is?
    Kieran

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Run time error type mismatch 13

    Assuming that the range is from A2 to Z

    ThisWorkbook.Worksheets("Command").Range("A2:Z" & Worksheets("Command").Range("A" & Rows.Count).End(xlUp).Row)

    Change the coloured column if any column other than A is the largest column, ie has the lowest row at the bottom.

  5. #5
    Forum Contributor
    Join Date
    03-16-2012
    Location
    Halifax, UK
    MS-Off Ver
    MS Office 365
    Posts
    206

    Re: Run time error type mismatch 13

    Thanks AB33 thats worked.
    Kieran

+ 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. Run time error 13. Type Mismatch
    By nouman229 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2015, 03:59 AM
  2. [SOLVED] Run time error 13 Type mismatch
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2014, 05:59 AM
  3. Run-Time error 13 type mismatch
    By zplugger in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2012, 09:38 PM
  4. Run Time Error '13'. Type Mismatch
    By TonyforVBA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-08-2010, 09:29 AM
  5. Run time error - type mismatch
    By justinng in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-10-2009, 11:24 PM
  6. run-time error 13 type mismatch
    By godster84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-27-2007, 11:29 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