Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2018, 07:38 AM
ldoodle ldoodle is offline Word Compatibility Options Windows 10 Word Compatibility Options Office 2010 32bit
Novice
Word Compatibility Options
 
Join Date: Oct 2018
Posts: 17
ldoodle is on a distinguished road
Default Word Compatibility Options

Hi,

Is it possible to set this via code? We get docs sent to us in a right mess formatting and styles wise, and part of that is being set to 2003 compatibility options

I've sorted out all the other mess with code but not sure how (if) I can do the compatibility options to 2010.



Thanks
Attached Images
File Type: png word-compat-options.png (247.8 KB, 16 views)
Reply With Quote
  #2  
Old 11-01-2018, 08:53 AM
ldoodle ldoodle is offline Word Compatibility Options Windows 10 Word Compatibility Options Office 2010 32bit
Novice
Word Compatibility Options
 
Join Date: Oct 2018
Posts: 17
ldoodle is on a distinguished road
Default

PS: This doesn't work. Using wdWord2010 leave it as Word 2003. Using wdWord2007 does change it to Word 2007!

Code:
ActiveDocument.SaveAs2 Filename:=Filename("this is my filename"), FileFormat:=wdFormatDocumentDefault, CompatibilityMode:=wdWord2010
With ActiveDocument

    .SetCompatibilityMode (wdWord2010)
    
End With
Reply With Quote
  #3  
Old 11-01-2018, 01:20 PM
macropod's Avatar
macropod macropod is offline Word Compatibility Options Windows 7 64bit Word Compatibility Options 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

Quote:
Originally Posted by ldoodle View Post
Is it possible to set this via code? We get docs sent to us in a right mess formatting and styles wise, and part of that is being set to 2003 compatibility options
Yes, it's possible, but it's unlikely to help with any formatting issues. The code you posted changes the compatibility setting after saving the document; hence it won't change the saved document's compatibility settings.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Compatibility Options Word compatibility - PC to Mac Youngsjess Word 2 08-18-2017 09:55 AM
Word Compatibility Options Word 13 in compatibility mode treadhead194 Word 4 12-23-2014 06:06 PM
Word Compatibility Options Word 2002 compatibility with Windows 7 Straitsfan Word 6 03-13-2014 07:36 PM
Word Compatibility Options compatibility between Word 2007 & 2010 OTI Word 1 04-06-2011 05:41 PM
iWork (Pages)-MS Word Compatibility Pete3 Word 0 03-12-2010 07:13 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:25 AM.


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