+ Reply to Thread
Results 1 to 3 of 3

method 'open text' of object 'workbooks' failed

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    3

    method 'open text' of object 'workbooks' failed

    Hi
    I am trying to run a macro that updates info from ms project to excel but the following error code comes up

    run time error 1004
    method 'open text' of object 'workbooks' failed

    macro recorded as follows


    'Range("A2").Select
    Range(Selection, Selection.End(xlDown)).Select
    Range(Selection, Selection.End(xlToRight)).Select
    Selection.Copy
    Sheets(sname).Select
    Range("B4").Select
    ActiveSheet.Paste
    Range("e4:e59,f4:f50").Select
    Selection.HorizontalAlignment = xlCenter
    Sheets("Pj Filter").Select
    Sheets("Project1").Delete


    Please how can I resolve this issue?

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

    Re: method 'open text' of object 'workbooks' failed

    Which line is highlighted when you get the error and click Debug?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-23-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: method 'open text' of object 'workbooks' failed

    ActiveSheet.Paste

    is highlighted

+ 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] method 'open text' of object 'workbooks' failed
    By tina in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-23-2013, 11:53 AM
  2. [SOLVED] Method 'open' of object 'workbooks' failed
    By crunchKH in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2013, 09:13 PM
  3. Open method of object failed error
    By maw230 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2011, 09:19 AM
  4. Method'OpenText' of object 'workbooks' failed
    By jazbath in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2009, 02:41 PM
  5. Method 'Open' of object 'Workbooks' failed from within browser window
    By ramiro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2008, 12:08 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