Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 10-05-2022, 09:59 AM
Bertus Bertus is offline Compatibility in docx, not in dotx Windows 10 Compatibility in docx, not in dotx Office 2021
Novice
Compatibility in docx, not in dotx
 
Join Date: Mar 2019
Posts: 8
Bertus is on a distinguished road
Default

OK, I (well, with a lot of help) seem to have solved it, though it may not be an elegant solution:

changing a table's title works in O16, but as far as I can see not in O07. Word on user's computer says it's 2016 but if I ask for
Code:
ActiveDocument.CompatibilityMode
it returns 12 (weird or not?)

So I run
Code:
doc.SetCompatibilityMode 15
but for some reason that line resets all custom shape-names to their default, obviously causing problems referring to those in code later on (like setting a picture to a shape).
Editing the table's title at least works now.

Luckily I could reorder my subs to set CompatibilityMode to 15 after looping through all the shapes.

So, all in all, thank you guys for pointing me in this direction
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compatibility in docx, not in dotx Word 2003 refuses to open DOCX, even with compatibility pack, after 2016 install ugcheleuce Word 2 01-30-2017 06:33 PM
Macro to save docx to doc that checks compatibility and converts content controls to static content. staicumihai Word VBA 4 10-12-2016 08:23 PM
Remove Compatibility Mode on DOCX files (batch) w64bit Word 17 02-01-2015 06:02 AM
compatibility mode VS saving to doc as opposed to docx airtas Word 7 05-30-2010 02:19 PM
Can I separate a word Doc (docx) from the template used to create it (dotx)? paulnevlud Word 2 12-14-2009 10:13 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:26 AM.


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