+ Reply to Thread
Results 1 to 12 of 12

Run-Time error 13 type mismatch

  1. #1
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,170

    Run-Time error 13 type mismatch

    If I run this code on a new workbook it works perfect, get the error running on my workbook. Not sure
    what to look for in my workbbook that causes the problem?
    Thanks for any suggestions

    Please Login or Register  to view this content.
    Last edited by zplugger; 06-07-2012 at 07:11 AM.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,417

    Re: Run-Time error 13 type mismatch

    Try removing the parantheses from the Msgbox

    Please Login or Register  to view this content.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,170

    Re: Run-Time error 13 type mismatch

    Sorry about other post, hit the send button before I was done. Removing the parantheses did not work. I need to remove this post, other one has more info of problem.

  4. #4
    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 zplugger,

    It could be your system sees the Target in the InStr statement as an object and not a value. Try this change and see if anything changes.
    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!)

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,417

    Re: Run-Time error 13 type mismatch

    Thanks Leith. I wouldn't have though of that.

  6. #6
    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 abousetta,

    I guess we will have to wait till tomorrow for zplugger's results.

  7. #7
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,170

    Re: Run-Time error 13 type mismatch

    Thanks Leith that did the trick. You guys are the Greatest,have a great day.
    Z

  8. #8
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,170

    Re: Run-Time error 13 type mismatch

    Hello
    The problem is still solved, just have another question. Is it possible to add the backslash symbol to the code too. I played around a little with no luck.

  9. #9
    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 Z,

    I don't follow your last request. Can you give me an example?

  10. #10
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,170

    Re: Run-Time error 13 type mismatch

    Thanks again for all your help Leith, just wanted the msgbox to pop up if either forward & back slash symbol is used.

  11. #11
    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 Z,

    Here is one to do it...
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,170

    Re: Run-Time error 13 type mismatch

    Thanks again Leith, you give so much support to this site. I'm good at construction but excel is hard sometimes. I'm just amazed
    at what this program can do with the right codes. When time allows I spend hours just reading post to try and learn more.
    Z

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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