+ Reply to Thread
Results 1 to 3 of 3

Run-time error '13': Type mismatch

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Run-time error '13': Type mismatch

    Hello,

    I get this error message (Run-time error '13': Type mismatch) when I run the VBA. Error displayed on this this below line.

    Please Login or Register  to view this content.
    This code worked, when the cell value was just a single word. I was working on project in which earlier code read as below.

    Please Login or Register  to view this content.

    My Entire original code is

    Please Login or Register  to view this content.
    anyone aware what could have been wrong here? Seems like, I adding cell value "BS - BI-Week1 - US" is not working. How can I fix this one?

    Thanks
    Keep the Forum clean :


    1. Use [ code ] code tags [ /code ]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. Show appreciation to those who have helped you by clicking * Add Reputation below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Run-time error '13': Type mismatch

    Hello shiva_reshs,

    You need to first check that the cell is a date before testing the other conditions.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: Run-time error '13': Type mismatch

    ohh! sorry..

    Thanks for the direction..

    Regards

+ 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 mlegge77 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2013, 04:44 PM
  2. Run-Time Error 13 type mismatch
    By jamm_027 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-20-2012, 02:47 PM
  3. [SOLVED] Please help with Run-Time error 13 Type Mismatch
    By alec66317 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2012, 08:29 AM
  4. Run-Time error '13': Type mismatch
    By Drew Watson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2010, 08:39 AM
  5. Run-time error '13'. Type mismatch
    By marse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2008, 11:49 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