![]() |
|
#1
|
|||
|
|||
![]()
It turned out the issue was PHPWord was saving the documents in Word2007 format in compatibility mode. I had to modify the macro to save the documents in docx format and remove compatibility mode, and then I was able to modify the title attribute.
Code:
wdDoc.SaveAs2 FileName:=path & fname, FileFormat:=wdFormatDocumentDefault, CompatibilityMode:=wdWord2013 Code:
For Each sh In wdDoc.ActiveWindow.Document.InlineShapes sh.Title = url Next sh |
![]() |
Tags |
image, phpword, title |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Slamzor | Drawing and Graphics | 4 | 04-16-2018 07:46 AM |
![]() |
Paulmoore | Word | 3 | 07-01-2015 01:19 AM |
creating a new TITLE property from text already within document | smndnm | Word VBA | 6 | 07-04-2014 08:27 PM |
Remove title property from all files in a folder | konopca | Word VBA | 2 | 12-04-2012 10:54 AM |
Title: Why does focus fail to change to MyPic2.jpg (intermittently) after .addPictur | CatMan | PowerPoint | 6 | 05-10-2012 10:25 PM |