+ Reply to Thread
Results 1 to 2 of 2

Run-time Error 1004: Method 'SaveCopyAs' of object '_Workbook failed'

  1. #1
    Registered User
    Join Date
    01-26-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    Run-time Error 1004: Method 'SaveCopyAs' of object '_Workbook failed'

    This workbook is suppose to work by clicking a SAVE button on first sheet which should generate new workbook by copying the active workbook and automatically renaming and saving in my Documents folder. However, it crashes after first use. At second use its reporting the Run-time error 1004: Method 'SaveCopyAs' of object '_Workbook failed'

    Dim myRange

    Set myRange = Worksheets("Employee List").Range("B403")

    Set Newbook = ActiveWorkbook

    With myRange
    ActiveWorkbook.SaveCopyAs myRange
    End With

    I'm very new to macros and formulas but when going into VBA in Excel it reports the following line as having the error and seems to want a Filename (ActiveWorkbook.SaveCopyAs myRange) but why would it work the first time correctly but then crash? Any help would be much appreciated.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Run-time Error 1004: Method 'SaveCopyAs' of object '_Workbook failed'

    Hi melissadunham68,

    Welcome to the forum

    Unfortunately your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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] runtime error 1004 method save of object _workbook failed
    By madhatter40 in forum Excel General
    Replies: 1
    Last Post: 06-22-2013, 07:30 AM
  2. [SOLVED] runtime error 1004 method save of object _workbook failed
    By madhatter40 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2013, 03:37 AM
  3. [SOLVED] run time error 1004 method save as of object _workbook failed
    By johnsmith2004ad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2013, 02:02 AM
  4. 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
  5. Run Time Error '1004': Method 'saveas' of object '_workbook' failed
    By vcuphysics in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2012, 04:50 PM

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