+ Reply to Thread
Results 1 to 4 of 4

Run-time error 1004 - Method 'Open' of object "workbooks' failed

  1. #1
    Registered User
    Join Date
    05-05-2016
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    2

    Run-time error 1004 - Method 'Open' of object "workbooks' failed

    Hi Guys
    I am new here, so pls bear with me
    I am trying this code, but getting that annoyant error.

    Sub Inicio()

    Application.DisplayAlerts = False

    BD = MsgBox("Já Actualizou BD?", vbYesNo)
    If BD = vbNo Then
    Workbooks.Open ("\\filesharing2\binvestor2\Share Departamental\DRCG\05 Risco de Crédito\01 IMPARIDADE\01 APURAMENTO DE IMPARIDADE\IFRS9 Output\Curvas.xlsb")
    Dim Dados As Workbook
    Set Dados = Workbooks("Curvas.xlsb")
    Workbooks("Curvas.xlsb").Application.Run ("'Curvas.xlsb'!Actualizar")
    Workbooks("Curvas.xlsb").Application.Run ("'Curvas.xlsb'!Copiar_V")

    'Call Copiar_BD
    Sheets("Resumo").Activate

    Else
    'Call Copiar_BD
    Sheets("Resumo").Activate

    End If

    Application.DisplayAlerts = True

    End Sub

    So the code and myself are stuck there. Office is 2010 plus, and I can also open the file mannually without probs or msgs:

    Would appreciate vm your help pls...

    Tks a lot!

  2. #2
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Run-time error 1004 - Method 'Open' of object "workbooks' failed

    try

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Run-time error 1004 - Method 'Open' of object "workbooks' failed

    maybe this way
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-05-2016
    Location
    Lisbon, Portugal
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    2

    Re: Run-time error 1004 - Method 'Open' of object "workbooks' failed

    sorry same error....

+ 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' 1004'; Method 'OpenText' of object 'Workbooks' failed
    By billfinnjr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2018, 11:44 AM
  2. run time error 1004 method open of object workbooks failed
    By bennyamy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2017, 05:09 PM
  3. Run-time error 1004 Method Open of object Workbooks Failed
    By Rikimaru82 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2016, 04:32 AM
  4. [SOLVED] run-time error '1004' method 'open' of object 'workbooks' failed
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-03-2016, 06:24 PM
  5. [SOLVED] Run-time error '1004': Method 'Open' of object 'Workbooks' failed
    By krish2503 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-14-2015, 06:11 AM
  6. "Run-time error '1004' : Method 'Range' of object'_Global' failed
    By Optiprime in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2013, 06:01 AM
  7. Run time error 1004 method save as of object 1 "_workbook" failed.
    By json_79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-09-2012, 02:41 AM

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