+ Reply to Thread
Results 1 to 7 of 7

Error message on saving file after running macro

  1. #1
    Registered User
    Join Date
    02-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Error message on saving file after running macro

    Hi,

    I have a master file with 14 tabs which do the calculations. I use the macro below to copy the tab 'Highlights' from all the other individual files in the folder. The macro executes fine but when I try to save the file, it comes with up with an error message and I cannot save it. Could someone tell me where I am going wrong. I use Excel 2010

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: Error message on saving file after running macro

    Some idea of what the error is would be useful.

  3. #3
    Registered User
    Join Date
    02-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Re: Error message on saving file after running macro

    Hi, Please see error messages below.....

    'Errors were detected while saving 'C:\Documents\Highlights.xlsm'. Microsoft Excel may be able to save the file by removing or repairing some features. To make the repairs in a new file, click Continue. To cancel saving the dile, click Cancel.'

    and when I click 'Continue',
    'Excel encountered errors during save. However, Excel was able to minimally save your file to C:\Users\........'

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Error message on saving file after running macro

    Does this make any difference?

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: Error message on saving file after running macro

    Any images being copied?

  6. #6
    Registered User
    Join Date
    02-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Re: Error message on saving file after running macro

    Hi John....tried your code...it all runs fine and can see all tabs being copied in. And then at the end, all the added sheets disappear and the file becomes read-only..so the file name changes to Thisworkbook.FullName (Read only). Didnt try to save it as all the added sheets had in any case disappeared!

    Hi grimes, thanks for that!! Yes, indeed...there were a couple of images on one of the worksheets being copied over. Deleting those images seem to have done the trick and I am now able to save. Thank you so much.

  7. #7
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: Error message on saving file after running macro


+ 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. Running excel macro always display this message "A file named 'sample.xlsm' already exist
    By Jovillanueva in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2014, 12:43 AM
  2. Macro Cell Error At Cell message when running Solver in VBA
    By Eharr3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2013, 03:36 PM
  3. Saving xlsm file as xlsx while running macro
    By happygilmore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2012, 02:32 PM
  4. Error message when saving a csv file
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2011, 05:42 PM
  5. Help Error Message When Saving
    By meiax in forum Excel General
    Replies: 0
    Last Post: 09-05-2011, 05:13 PM
  6. Automatically saving access query as Excel file and then running a macro
    By Spac3Monkey1 in forum Access Programming / VBA / Macros
    Replies: 0
    Last Post: 06-10-2009, 09:54 AM
  7. Error Saving after running Macro
    By millen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2007, 09:14 AM
  8. remove macro error message at file startup
    By grendi in forum Excel General
    Replies: 2
    Last Post: 08-28-2005, 02:05 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