+ Reply to Thread
Results 1 to 6 of 6

Run time error 13 type mismatch

  1. #1
    Registered User
    Join Date
    06-23-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    49

    Run time error 13 type mismatch

    Hello
    There is probably a really simple reason why I get this error but I have wasted ages trying to figure it out.

    Have a userform with 2 file pickers to select 2 workbooks which opens the workbooks OK. Now I want to create a variable with the value contained in one of the cells in one of the workbooks.

    The last line of code gives the error. Any ideas?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2019
    Posts
    209

    Re: Run time error 13 type mismatch

    Hi Potga,

    try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    try it again

    Cheers
    Lex

  3. #3
    Registered User
    Join Date
    06-23-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    49

    Re: Run time error 13 type mismatch

    lexusap
    still get the same error.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Run time error 13 type mismatch

    How about trying

    var1 = Workbooks(wbOpen1).Worksheets(Sheet1).Range("F9").Text
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2019
    Posts
    209

    Re: Run time error 13 type mismatch

    Hi,

    what is the value of your WbOpen1 ? can you check?

    Cheers
    Lex!

  6. #6
    Registered User
    Join Date
    06-23-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    49

    Re: Run time error 13 type mismatch

    Was a really simple reason. Cell I was trying to get the info from was a merged cell.

+ 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 sugaprasad in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2013, 02:06 PM
  2. Run-time error 13 - Type Mismatch
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2012, 06:10 AM
  3. Run Time Error '13'. Type Mismatch
    By TonyforVBA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-08-2010, 09:29 AM
  4. run-time error 13 type mismatch
    By godster84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-27-2007, 11:29 PM
  5. Run-time error '13':Type mismatch
    By Sibilia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2005, 03:54 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