+ Reply to Thread
Results 1 to 12 of 12

Runtime error 13 Type mismatch

  1. #1
    Registered User
    Join Date
    12-22-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    89

    Runtime error 13 Type mismatch

    Hi All,

    I was using the below code to extract data and pasting it in another sheet called Result

    Now today I added 2 extra rows and I am getting the Type mismatch error at line "Set frng = Sheets("result").Range("A:A").Find(CDate(fdate))"

    I have tried amending the i = 1137 because from thats where the 2 rows are being added and hence amended the Irow Step 14
    But it still gives the same error

    Can anybody please help to troubleshoot

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by logisticsexcel; 05-29-2017 at 07:55 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Runtime error 13 Type mismatch

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,229

    Re: Runtime error 13 Type mismatch

    Hi logistixexcel

    Your steps are 12, 14, 13
    Is this the norm and are they repeated....
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  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: Runtime error 13 Type mismatch

    The problem is that fdate is an empty string because B22 is empty.
    If posting code please use code tags, see here.

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Runtime error 13 Type mismatch

    Hi- Not sure what the FORMAT >> CDATE thing was about. I took it out and the type mismatch disappeared.
    Please Login or Register  to view this content.
    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 05-29-2017 at 12:29 PM.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,229

    Re: Runtime error 13 Type mismatch

    Sort out your 14 step and then this code has been tested and works:
    So date in row 2 then 16 then 30
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-22-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    89

    Re: Runtime error 13 Type mismatch

    Thanks all for your help.

    It works now

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,229

    Re: Runtime error 13 Type mismatch

    Glad we could help. Thanks for the rep point.

  9. #9
    Registered User
    Join Date
    03-25-2014
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Runtime error 13 Type mismatch

    Type mismatch error
    All my macros were working properly on windows7 Excel 2003 Excel 2007, Excel 2010
    None are working on windows10 Excel 2016 or even on Excel 2007

    My scripts are too long, numerous to fix every bugs.

    Is there a solution to get Windows10 fix in order to run those script as before on windows7

    Marcel

  10. #10
    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

    mdleclerc

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

    PS It's unlikely the errors you are receiving are a version issue.

  11. #11
    Registered User
    Join Date
    03-25-2014
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Runtime error 13 Type mismatch

    I am searching for the last 15 minutes, I cannot find were is new Thread

  12. #12
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Runtime error 13 Type mismatch

    Marcel, I think he means you should start your OWN thread, and perhaps include a link to this one in THAT. To start a thread, go to the Home page, select the appropriate Forum (just 1; do not cross-post) and click the blue + Post New Thread button.

+ 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. Runtime Error 13 .... Type Mismatch
    By mawnek in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-03-2016, 02:03 PM
  2. Type mismatch runtime error 13
    By kalyanr12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2014, 04:09 PM
  3. Type Mismatch Runtime Error
    By Jaeger in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-21-2014, 10:49 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. [SOLVED] runtime error 13 type mismatch
    By chappie in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-30-2012, 10:12 PM
  6. [SOLVED] Runtime Error Type 13 Mismatch
    By Linking to specific cells in pivot table in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-31-2006, 12:35 PM
  7. Runtime Error '13': Type mismatch
    By Linking to specific cells in pivot table in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2005, 03:06 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