Question posted 2010 · +9 upvotes
It looks like SaveAs has gone away in Office 2010 in favor of SaveAs2. What is going on here? Are there any important differences between the two? My fix has been to check for SaveAs2 first, and then fall back to SaveAs. Is this reasonable?
Accepted answer +11 upvotes
It hasn’t gone away, you’ve just got another way to save the document. Save2() takes an extra argument, CompatibilityMode. If you don’t care about the compatibility mode then just keep using Save(). If you do then check Application.Version to verify that you can call Save2() without getting an exception.
Word VBA objects referenced (3)
Application— Using events with the Application objectApplication— Working with Other ApplicationsApplication.Version— Make Separate Compose and Read Versions for a Form
Top ms-word Q&A (6)
- XML – adding new line +19 (2012)
- How to open and manipulate Word document/template in Java? +18 (2012)
- Why does the file utility identify Microsoft Word files as CDF? What is this CDF? +15 (2011)
- Version Control for word documents +13 (2008)
- programatically convert word docx to doc without using ole automation +13 (2008)
- What makes Microsoft-Word-generated HTML documents so large in code? +12 (2015)
ms-word solutions on this site
— top 23%.