+ Reply to Thread
Results 1 to 2 of 2

runtime error 1004 method save of object _workbook failed

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    142

    runtime error 1004 method save of object _workbook failed

    My question is
    I have a workbook which I save a copy each day and am now having some problems. I get the following error
    once and a while.
    "runtime error 1004 method save of object _workbook failed error 1004 method save of object _workbook failed" and it also get a "File locked" when I try to save
    the file. I believe my problem might be in the following code:

    Please Login or Register  to view this content.
    Would this code conflict if I have 2 copies of the same workbook up at the same time and try to run this code in one?
    I seem to only get the error message when I have 2 copies of the same workbook open at once.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: runtime error 1004 method save of object _workbook failed

    Hi, madhatter40,

    maybe using SaveCopyAs instead of SaveAs may help on that (SaveCopyAs will not let you alter the extension of the file - both must have the same extension).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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