Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-10-2014, 09:43 AM
funkyfido funkyfido is offline Saving macro in Excel 2010 Windows XP Saving macro in Excel 2010 Office 2007
Novice
Saving macro in Excel 2010
 
Join Date: Jun 2013
Posts: 24
funkyfido is on a distinguished road
Default Saving macro in Excel 2010


I have a macro which runs fine in Excel 2007. We have now upgraded to Excel 2010 but the macro won't save.

The code I am using is as follows:-
ActiveWorkbook.SaveAs Filename:="Y:\Reports\Test.xlsm", _
FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
ActiveWindow.Close

The error message which is returned is
"Errors were detecting while saving, may be able to save the file by removing or repairing some features" which it cannot do either.

Any idea how to get around this issue?
Thanks
Reply With Quote
  #2  
Old 03-10-2014, 04:04 PM
macropod's Avatar
macropod macropod is offline Saving macro in Excel 2010 Windows 7 32bit Saving macro in Excel 2010 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

That doesn't indicate a fault with the macro, but with the underlying workbook, another aspect of your system and/or that your Excel installation isn't fully updated. See, for example:
http://answers.microsoft.com/en-us/o...c-68b599b31bf5
http://support.microsoft.com/kb/2597034
http://support.microsoft.com/kb/271513
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-11-2014, 07:24 AM
funkyfido funkyfido is offline Saving macro in Excel 2010 Windows XP Saving macro in Excel 2010 Office 2007
Novice
Saving macro in Excel 2010
 
Join Date: Jun 2013
Posts: 24
funkyfido is on a distinguished road
Default Saving Macro in Excel 2010

Thanks. I removed the picture from my report and the macro now works okay.
Reply With Quote
Reply

Tags
excel 2010, saving, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
the saveas macro in excel 2010 is not transferring the macros to the new workbook missmr28 Excel Programming 3 06-20-2012 05:30 AM
Saving macro in Excel 2010 saving data in excel 2010 from excel 2003 johnkcalg Excel 1 02-06-2012 07:33 PM
Cutting and Pasting and Macro problems in Excel 2010 enkel Excel Programming 3 01-02-2012 10:15 PM
Mail with macro Excel 2010 santors71 Excel Programming 1 12-07-2011 06:34 AM
Saving macro in Excel 2010 Saving in Excel 2010 Issues Terosset Excel 7 03-09-2011 04:02 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft