Closed Thread
Results 1 to 2 of 2

Runtime Error 13 type mismatch

  1. #1
    Registered User
    Join Date
    05-06-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    11

    Post Runtime Error 13 type mismatch

    Hello Guys,

    i have written a vba code to open excel file saved at network server.
    The issue is code opens the file but gives "Runtime Error 13 Type mismatch"

    Code :

    <code>
    Sub test_opening()

    Dim filepath As String, filename As String, completename As String
    Dim hurray_macros As Workbooks
    filepath = "\\201.596.5.98\U089\hurray_macros\"
    filename = "hurray_macros.xlsm"
    completename = filepath & filename
    MsgBox completename

    Set hurray_macros = Workbooks.Open(completename)

    End Sub

    </code>

    Error is on last (Set hurray_macros = Workbooks.Open(completename)

    Any help would be appreciated.

    Thanks in advance.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Runtime Error 13 type mismatch

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Runtime error 13 - type mismatch
    By Polluz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2014, 11:30 PM
  2. runtime error 13 type mismatch
    By hughesy8290 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2013, 11:18 AM
  3. [SOLVED] runtime error 13 type mismatch
    By chappie in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-30-2012, 10:12 PM
  4. Runtime Error 13 Type Mismatch
    By vtsoldier2010 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-30-2012, 12:59 PM
  5. [SOLVED] Runtime Error Type 13 Mismatch
    By Linking to specific cells in pivot table in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-31-2006, 12:35 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