View Single Post
 
Old 10-05-2022, 09:59 AM
Bertus Bertus is offline Windows 10 Office 2021
Novice
 
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