+ Reply to Thread
Results 1 to 3 of 3

run time error 13 type mismatch when running VB macro in Excel 97

  1. #1
    Registered User
    Join Date
    03-24-2013
    Location
    Apple Valley, MN
    MS-Off Ver
    Excel 2010
    Posts
    29

    run time error 13 type mismatch when running VB macro in Excel 97

    The following code always hangs up at this line with a message box telling me
    Please Login or Register  to view this content.

    always hangs up at this line with a message box telling me
    Please Login or Register  to view this content.
    with a message box telling me
    Run-time error '13':
    type mismatch

    The preceding insertion of formulas in the range D4:G4 works fine. I am using VB to run this macro in Excel 97. The "ÁÙ´²" above are chinese words that my computer shows and deals with fine.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: run time error 13 type mismatch when running VB macro in Excel 97

    perhaps
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    03-24-2013
    Location
    Apple Valley, MN
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: run time error 13 type mismatch when running VB macro in Excel 97

    That works! Thanks! After I ran the macro it had pasted the formulas in but the formula wasn't giving me the desired result then I realized that somehow some extra spaces had gotten in my string to match when I pasted the formula into VB. After I deleted the spaces it worked.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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