Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2013, 07:29 AM
ajetrumpet's Avatar
ajetrumpet ajetrumpet is offline help with compatibility of "WdSaveFormat" property of SaveAs method Windows Vista help with compatibility of "WdSaveFormat" property of SaveAs method Office 2007
Novice
help with compatibility of "WdSaveFormat" property of SaveAs method
 
Join Date: Jul 2009
Location: Iowa City, IA
Posts: 11
ajetrumpet is on a distinguished road
Default help with compatibility of "WdSaveFormat" property of SaveAs method


Hi guys,

Does anyone know if there are any compatibility issues with this between office versions (2007 to anything newer)? I just tried to save a .docx file from a .dotx template file. I recorded a macro when doing it and this was the code that was produced:

Code:
  ActiveDocument.SaveAs FileName:="fileName.docx", FileFormat:= _
    wdFormatXMLDocument, LockComments:=False, Password:="", AddToRecentFiles _
    :=False, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts _
    :=False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
    SaveAsAOCELetter:=False
I ran this code to 'SaveAs' by opening a word template via VBA from Excel and doing the same thing. When I tried to open the new Word file (docx), I got this error:

The office open XML file [filename] cannot be opened because there are problems with its contents

do you guys know what might be happening here. It looks to me as though there are plenty of options, and of course MS is so great and documenting small things like this. Could I have done something wrong perhaps?

any help would be great. thanks!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with compatibility of "WdSaveFormat" property of SaveAs method Word 2007: How to get rid of "Microsoft Office Word Compatibility Checker" harrasalog wornways Word 2 11-24-2014 07:37 AM
Method to active "Select Drawing Objects" rgustin Word VBA 1 08-18-2012 11:58 AM
How to edit the "Format" and the "show level" of an EXISTING table of content? Jamal NUMAN Word 2 08-14-2011 10:46 AM
help with compatibility of "WdSaveFormat" property of SaveAs method How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM
Want to search for "class", replacing with document property YetAnotherAuthor Word 0 10-30-2009 09:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:55 PM.


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