+ Reply to Thread
Results 1 to 11 of 11

Run-time error '13': Type mismatch

  1. #1
    Registered User
    Join Date
    06-22-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    Office 10
    Posts
    13

    Run-time error '13': Type mismatch

    Hello, brilliant people!
    I am trying to adjust a file with macros that was previously built and I need some help, if possible. After making a few changes, I get the error mentioned above when running a macro.
    When debugging, it points the Line 44: "SheetName = SheetNames(i, 1)"


    The code is below.
    Any help is very much appreciated. Thank you in advance for your time.
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    883

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

    Cross-posted http://www.mrexcel.com/forum/excel-q...-mismatch.html
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  3. #3
    Registered User
    Join Date
    06-22-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    Office 10
    Posts
    13

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

    Yes, I posted there too... However the presented solution didn't solve the problem. Would you have any other suggestion?

  4. #4
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    883

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

    Have a read in both forums rules about posting links when cross-posting and in the other forum the link within the rules explaining why you should do this.
    Last edited by WasWodge; 06-22-2016 at 04:06 PM.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

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

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    If posting code please use code tags, see here.

  6. #6
    Registered User
    Join Date
    06-22-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    Office 10
    Posts
    13

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

    I clicked "Go Advanced" and then nothing happens when I click on the paper clip. A small white rectangle appears, but it doesn't give me a window to browse the file. I am using internet explorer. Could that be an issue?

    Thank you.

  7. #7
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    883

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

    The paperclip doesn't work at the moment, you need to click on Click on GO ADVANCED then scroll down to manage attachments. See the link below

    http://www.excelforum.com/showthread.php?t=1130062

  8. #8
    Registered User
    Join Date
    06-22-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    Office 10
    Posts
    13

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

    I used the Manage Attachments link. Let's see if the file goes through...
    Attached Files Attached Files

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

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

    Celias

    There's 3 files in that zipped folder, what do we need to do?

    PS I don't mean to unzip the files.

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

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

    Actually, I think I might have found the problem.

    When I run the code SheetNames is a single value not an array.

  11. #11
    Registered User
    Join Date
    06-22-2016
    Location
    Edmonton, Canada
    MS-Off Ver
    Office 10
    Posts
    13

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

    The original file was working perfectly. I made a copy of the original files to another folder and started changing it to adapt this system to another company. I changed the names of the employees, the names of the clients and the location where the linked files are located (line 30).

    When I changed the original Sheet Names to "Employee1", "Employee2", "Employee3", ... and made all the mentioned changes, the macro stopped working. I then reduced the list of employees names to just one to make it simple to test it.

    Does this make any sense to you? Would you have any other suggestion that might help solving this problem?

    Thank you.

+ 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. [SOLVED] Run-time error 13 type mismatch
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2013, 12:02 AM
  2. Run-time error '13': Type mismatch
    By Sky188 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2013, 03:07 PM
  3. [SOLVED] Run-time error '13': Type mismatch
    By smonzon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2013, 12:42 AM
  4. Run-time error '13' Type mismatch
    By caierhui in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2012, 03:20 AM
  5. [SOLVED] run-time error 13 type mismatch
    By ildestino in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2012, 03:40 AM
  6. Run time error '13' - type mismatch
    By a8747 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 05-19-2012, 09:41 PM
  7. Type mismatch Run-time Error 13
    By auber in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-27-2009, 10:46 AM
  8. 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